본문 바로가기

Docker

wsl2 우분투 cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?

728x90
반응형

wsl2에서  docker실행할 때 계속 저 에러가 나는데 뜨문뜨문 할 때마다 계속 검색하는 내 자신이 싫어서 남겨놓음.

$docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

$systemctl start docker 
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

$sudo /etc/init.d/docker start

$docker ps
728x90
반응형