报错信息: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、重启;
验证: