write command docker without need write sudo 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
Example 3: write command docker without need write sudo
#for write command docker without need write sudo #add all command in your terminal
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker