Skip to content

Instantly share code, notes, and snippets.

@olivx
Created November 29, 2018 01:24
Show Gist options
  • Save olivx/4a3e4e879d38d7d90e8fa727259af7cd to your computer and use it in GitHub Desktop.
Save olivx/4a3e4e879d38d7d90e8fa727259af7cd to your computer and use it in GitHub Desktop.
# 1. Create the docker group.
$ sudo groupadd docker
# 2. Add your user to the docker group.
$ sudo usermod -aG docker $USER
# 3. Log out and log back in so that your group membership is re-evaluated.
# 4. Verify that you can run docker commands without sudo.
$ docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment