docker changing user and group id code example
Example 1: add user to docker group
sudo usermod -aG docker $USER #$USER is your username
Example 2: add user to docker group
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER #$USER is your username
sudo gpasswd -a $USER docker