Skip to content

Instantly share code, notes, and snippets.

@zahash
Last active March 22, 2024 16:41
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 zahash/b107fe7e8f8b04bda3892a5d642c1458 to your computer and use it in GitHub Desktop.
Save zahash/b107fe7e8f8b04bda3892a5d642c1458 to your computer and use it in GitHub Desktop.
sudo apt install docker.io
# add user to docker group for non-sudo access
sudo groupadd docker # add docker group
sudo usermod -aG docker $USER # add your user to the docker group.
newgrp docker # activate the changes to groups. Run this command on each new terminal session
docker ps # verify that user can run Docker without sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment