728x90
첫번째.
docker ps 를 했더니 "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" 라고 나옴.
sudo systemctl status 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 systemctl enable docker 를 했더니
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
해결방법은 바로 윗줄에 있다.
sudo /lib/systemd/systemd-sysv-install enable docker
sudo /etc/init.d/docker start
( docker의 실행경로가 다름 )
이번에는 error가 없어서 test로
sudo docker run hello-world 했더니 잘 받아오네 ㅎ
728x90