Skip to content

Instantly share code, notes, and snippets.

@v0lkan
Last active September 3, 2022 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0lkan/4ce942640fff317fcd0637019af37c0f to your computer and use it in GitHub Desktop.
Save v0lkan/4ce942640fff317fcd0637019af37c0f to your computer and use it in GitHub Desktop.
How to fix the “Got permission denied while trying to connect to the Docker daemon…” warning
# ref: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user
sudo groupadd docker
sudo usermod -aG docker ${USER}
su -s ${USER}
# If that does not work, try this:
# newgrp docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment