Create Docker group and allow Non root user access
December 7, 2015
Earlier we have discussed installation of docker on different linux version.Here we are going to add non root user to docker group .docker process use root user pervilage to connect.docker command create a unix group called as docker if it is added in the group otherwise it look sudo previlage.
In my installation post i have run docker and other commands a root user .To avoid this we are adding normal user to add into the group.
docker group and add user “techtransit” . i had create a user “techtransit” in my machine.
Steps are :
- Log into your system with sudo or root previlage.
- Run below command command to create group and add your user or here i am adding techtransit in the group through below command.
# usermod -aG docker techtransit
- Exit from currently user and log in from techtransit user or your user which is added in docker group.
- Check and Verify below command without sudo .
# docker run hello-world
That’s All!, Thanks ..