ubuntu: 解决cannot connect to the Docker daemon at unix:///var/run/docker.sock.的问题
在Ubuntu 18.04下,查看docker images时提示Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?尝试了systemctl start docker和systemctl enable docker,还是提示错误。解决方法:sudo...
·
在Ubuntu 18.04下,查看docker images时提示Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
尝试了systemctl start docker和systemctl enable docker,还是提示错误。
解决方法:
sudo systemctl unmask docker.service
sudo systemctl unmask docker.socket
sudo systemctl start docker.service
以上的unmask命令的方法解决了我的问题,或许还有不同的情况,我是参考以下链接的:
https://stackoverflow.com/questions/37227349/unable-to-start-docker-service-in-ubuntu-16-04
更多推荐
已为社区贡献1条内容
所有评论(0)