1. Create a docker group if it doesn’t exist
$ sudo groupadd docker2. Add the current user to the docker group
$ sudo usermod -aG docker $USER3. Restart the docker deamon
$ sudo service docker restart #Ubuntu4. Optionally, check you can run docker without sudo
$ docker run hello-world