Got permission denied while trying to connect to the Docker daemon socket at

添加新用户后执行docker命令由于没权限出现以下报错:

1
”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 @   西门运维  阅读(2150)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示