How to run docker without sudo

Jul 16, 2020 6:35 pm
by Alex

1. Create a docker group

$ sudo groupadd docker

2. Add the connected user $USER to the docker group

Optionally change the username to match your preferred user.
$ sudo gpasswd -a $USER docker

3. Restart the docker daemon

$ sudo service docker restart