$ docker images 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.37/images/json: dial unix /var/run/docker.sock: connect: permission denied
解决办法很简单,将当前用户加入docker用户组:
1 2 3 4 5
$ sudo usermod -aG docker $USER $ sudo systemctl restart docker $ newgrp docker $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE