commands with group
# add a new group docker
sudo groupadd docker
# change to group docker
sudo newgrp docker
# add the connected user to the group
sudo gpasswd -a ${USER} docker
# restart the service
sudo service docker restart
# check which current group ${USER} belonged to
id -gn