add user to docker group 1

add user to docker group

$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ newgrp docker 

Here is what the above code is Doing:
1. Create a docker group.
2. Add your user to the docker group.
3. Activate the changes to groups.

Similar Posts