Upendra Kumar D.
UD
Data Science Fellow at Insight Data Science

How do I run Docker without sudo access?

?
2 comments
Looks like you’re not logged in.
Users need to be logged in to answer questions
Log In
LP
Student
0
The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user. If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group. sudo groupadd docker sudo usermod -aG docker $USER newgrp docker And log out. After the login you’ll be able to run docker without sudo command.
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply
Guiomar T.
GT
Jefe de proyecto en Naeva Tec
0
Docker has its own group "docker" (in Ubuntu usually the groupId is 999). So if you add any user to the docker group this user will be able to execute any docker comand.
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply