Run Docker commands without sudo
Create a docker
group:
sudo groupadd docker
Add your user to the docker
group:
sudo gpasswd -a USERNAME docker
Log out and back in, then restart the Docker daemon.
# Ubuntu
sudo service docker resart
# Arch
sudo systemctl docker restart
Now you can run docker commands as your user!
Written by Chris McKinnel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Docker
Authors
Related Tags
#docker
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#