报错信息:permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied

解决方案:

1、终端中输入 usermod -aG docker username;、

2、重启;

验证:

 

posted on 2024-05-16 19:02  无知小笨鸟  阅读(71)  评论(0编辑  收藏  举报