执行以下命令时:

docker pull ubuntu

报以下错误信息:

Using default tag: latest Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=ubuntu&tag=latest: dial unix /var/run/docker.sock: con

解决办法:

增加sudo命令,例如:

sudo docker pull ubuntu

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐