"docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create
https://docs.docker.com/engine/install/linux-postinstall/
- To manage Docker as a non-root user, follow the Docker Post-Installation Steps for Linux instructions.
-
To create the Docker group and add your user:
-
Create the Docker group.
sudo groupadd docker
-
Add your user to the Docker group.
sudo usermod -aG docker $USER
-
Log out and log back in so that your group membership is re-evaluated.
-
Verify that you can run docker commands without sudo.
docker run hello-world
https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket
https://phoenixnap.com/kb/cannot-connect-to-the-docker-daemon-error
https://github.com/docker/for-linux/issues/535