1. 程式人生 > >Got permission denied while trying to connect to the Docker daemon socket at

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

出現 mon ket get 由於 use 添加 con arp

添加新用戶後執行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


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