How to run docker without sudo

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

$ sudo usermod -aG docker $USER

3. Restart the docker daemon

$ sudo service docker restart