Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.
Posted 天道酬勤2016
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/json: dial unix /var/run/docker.sock: connect: permission denied
过程:早先是以root账号安装docker和下载镜像的,后来建立了一个新账号docker,以docker登录,使用docker命令,出现上述错误信息。
解决办法:
在相应docker命令前加sudo或切换到root账号
以上是关于Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.的主要内容,如果未能解决你的问题,请参考以下文章
解决Docker Got permission denied问题
亲测有效运行docker ps 出现Got permission denied问题的解决方案
安装完docker后报错Got permission denied while trying to connect to the Docker daemon socket...
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.
问题解决Got permission denied while trying to connect to the Docker daemon socket at 。。。
docker Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/