docker执行命令报错:Got permission denied while trying to connect to the Docker daemon socket at unix:///va
环境:ubuntu16.04执行命令:docker run -it centos报错:Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/dockerdocker: Got permission denied while trying to connect to t
·
环境:ubuntu16.04
执行命令:docker run -it centos
报错:Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker
docker: 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.26/containers/create: dial unix /var/run/docker.sock: connect: permission denied
原因:没有加sudo,我的用户不是root 没办法执行
解决方案:sudo docker run -it centos
更多推荐
已为社区贡献14条内容
所有评论(0)