Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Linux/Run Docker Without Sudo

February 10, 2019

Run Docker Without Sudo

Run Docker without sudo. Add user to docker group. Login as docker using newgrp.

sudo gpasswd -a $user docker
newgrp docker

sudo gpasswd -a $user docker newgrp docker

You can now run the following commands without sudo.

docker ps
docker images

docker ps docker images

Every time you open a new terminal , just run.

newgrp docker

newgrp docker

Filed Under: Linux Tagged With: docker, sudo, without

Content delivered to your email

About Me

I'm Ulysses, a Cloud Engineer at Cardinal Health based in Columbus, Ohio. I’m a certified AWS Solutions Architect. This website is my way of documenting the things I have learned in the Cloud. When off the grid, I enjoy riding my electric skateboard. I have surfed, snowboarded and played the saxophone in the past. I hope you will find this site helpful. It's powered by WordPress and hosted in AWS LightSail.

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021