Skip to content

Instantly share code, notes, and snippets.

@matthewhartman
Last active July 28, 2020 00:43
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 matthewhartman/71725e9483854b1ea72fbd168a9a9d3b to your computer and use it in GitHub Desktop.
Save matthewhartman/71725e9483854b1ea72fbd168a9a9d3b to your computer and use it in GitHub Desktop.

Running Docker on Linux (Debian)

Install Docker

https://docs.docker.com/engine/install/debian/

Manage Docker as Non Root User

Add the docker group if it doesn't already exist:

sudo groupadd docker

Add the connected user "$USER" to the docker group. Change the user name to match your preferred user if you do not want to use your current user:

sudo gpasswd -a $USER docker

Either do a newgrp docker or log out/in to activate the changes to groups.

Test docker without sudo

docker ps -a

Source: https://askubuntu.com/a/477554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment