Use Docker Without Sudo
This command adds you into docker group, so you could run docker command without sudo.
sudo usermod -aG docker $USER
The user you added has to log out and log back in for it to work.
January 22, 2020
This command adds you into docker group, so you could run docker command without sudo.
sudo usermod -aG docker $USER
The user you added has to log out and log back in for it to work.