在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