Create Docker group and allow Non root user access

Earlier we have discussed installation of docker on different version.Here we are going to add non root user to 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 and other commands a root user .To avoid this  we are adding normal user to add into the group.

Create the group and add user “techtransit” . i had create a user “techtransit” in my machine.

Steps are : 

  1. into your system with sudo or root previlage.
  2. 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  techtransit
  3. Exit from currently user and in from techtransit user or your user which is added in group.
  4. Check and Verify below command without sudo .
       # docker run hello-world

 

That’s All!, Thanks ..

About Sachin Gupta

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009. rocks!

Have any Question or Comment?

Leave a Reply

Your email address will not be published.