Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5970

How to run Docker without sudo on Ubuntu Linux? [duplicate]

$
0
0

I am only posting because i tried all solutions i found. I have not tried to change the permissions of /var/run/docker.sock which people have been saying is a security issue.

I tried adding my $USER to a docker group.

sudo usermod -aG docker $USER

After which I tried each method - log out & log in, reboot, newgrp docker, sudo systemctl restart docker, sudo service docker restart.

None of these solutions work for me.I don't know if it helps but the docker service in htop runs as /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock.

I really need to run docker without sudo so i can attach my container to my vscode session.


Viewing all articles
Browse latest Browse all 5970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>