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.
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.
Already have Mirantis Kubernetes Engine (formerly Docker Enterprise)?
About Mirantis
Mirantis Kubernetes Engine (formerly Docker Enterprise) is full-featured, CNCF-compliant enterprise Kubernetes, complete with a management webUI, Calico container networking, and Istio ingress. It’s b
With over 2.5 million reviews, we can provide the specific details that help you make an informed software buying decision for your business. Finding the right product is important, let us help.
or continue with
LinkedIn
Google
Google (Business)
Gmail.com addresses not permitted. A business domain using Google is allowed.