Public
Authored by Vassilis Lambropoulos

Run docker without sudo

Add the docker group if it doesn't already exist

sudo groupadd docker

Add the connected user "$USER" to the docker group

Change the user name to match your preferred user if you do not want to use your current user

sudo gpasswd -a $USER docker

Either do a

newgrp docker

or log out/in to activate the changes to groups

You can use

docker run hello-world

to check if you can run docker without sudo

source: https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo

Edited
docker.sh 89 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment