- 1.docker pull ubuntu:16.04
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
- 解决办法
原因:是没有sudo,正确应该是 sudo docker pull ubuntu:16.04
或者通过 How can I use docker without sudo? 的方法解决问题。
网友评论