Installing Docker on Linux is easy. But you may notice that at first you can only run Docker
commands as sudo
.
That can become annoying if you are running Docker
locally for development purposes.
If you want to be able to skip sudo
for docker commands, add your user to the docker group:
$ sudo usermod -aG docker <plug your user here>
Restart your system for changes to take effect.
Note that there are security concerns that you should be aware of if you decide to do this in any production environment.