Run Docker commands without sudo
docker
group if it doesn't already exist
1. Add the $ sudo groupadd docker
$USER
to the docker group
2. Add the connected user Optionally change the username to match your preferred user.
$ sudo gpasswd -a $USER docker
docker
daemon
3. Restart the $ sudo service docker restart
If you are on Ubuntu 14.04-15.10, use docker.io
instead:
$ sudo service docker.io restart