Docker without root

Published on

Create the docker group.

sudo groupadd docker

Add your user to the docker group.

sudo usermod -aG docker $USER

Apply the changes to the group.

newgrp docker

Verify if you can run docker.

docker version

This is not recommended on internet facing servers, keep docker privileges to the root user.