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/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/json: dial unix /var/run/docker.sock: connect: permission denied“

解决:
将用户加到docker组即可。
usermod -g docker test

posted @ 2019-04-02 23:17  西门运维  阅读(2147)  评论(0编辑  收藏  举报