docker with sudo or without code example
Example 1: how to add docker to sudo group
sudo groupadd docker
sudo usermod -aG docker $USER
Example 2: 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