Skip to content

Instantly share code, notes, and snippets.

@ephrin
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save ephrin/d0729bdb0a9a343d0a04 to your computer and use it in GitHub Desktop.

Select an option

Save ephrin/d0729bdb0a9a343d0a04 to your computer and use it in GitHub Desktop.
Docker user access

To create the docker group and add your user:

Log into Ubuntu as a user with sudo privileges.

This procedure assumes you log in as the ubuntu user.

Create the docker group and add your user.

$ sudo usermod -aG docker ubuntu

Log out and log back in.

This ensures your user is running with the correct permissions.

Verify your work by running docker without sudo.

$ docker run hello-world

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