$ sudo服务docker start
* Starting Docker: docker
$ sudo服务泊坞窗状态
* Docker is not running
$ sudo docker pull bkimminich / juice-shop
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (Cannot connect
to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon
running?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the
docker daemon running?
答案 0 :(得分:0)
感谢:https://www.santoshsrinivas.com/docker-on-ubuntu-16-04/
docker
(如果存在则跳过)。 user
添加到组docker
。bash
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart`