一、報錯現(xiàn)象:
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.24/images/json": dial unix /var/run/docker.sock: connect: permission denied
這個錯誤通常表示用戶嘗試執(zhí)行與Docker守護程序通信的操作,但沒有足夠的權(quán)限。文章來源地址http://www.zghlxwxcb.cn/news/detail-847896.html
二、解決辦法
# 將用戶添加到docker組中
usermod -aG docker 你的用戶名
# 重啟docker
systemctl restart docker
# 修改權(quán)限
chmod 666 /var/run/docker.sock
文章來源:http://www.zghlxwxcb.cn/news/detail-847896.html
到了這里,關(guān)于docker報錯:Got permission denied while trying to connect to the Docker daemon socket at unix:///var/ru的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!