add user to sudo docker code example
Example 1: make docker sudo less
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ newgrp docker
Example 2: add user to docker group
sudo usermod -aG docker $USER #$USER is your username
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ newgrp docker
sudo usermod -aG docker $USER #$USER is your username