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.39/containers/json: dial unix /var/run/docker.sock: connect: permission denied
- 添加docker用户组
sudo groupadd docker
- 将当前用户加入到docker用户组
sudo gpasswd -a ${USER} docker
- 重启docker服务
sudo service docker restart
- 退出当前用户重登一下