Score:0

can't pull docker

cn flag

if I try to pull a docker it gives me this output

Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=homeassistant%2Fhome-assistant&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

im a noob at ubuntu so please explain the fix for dummies

also maybe it has something to do with this

How do i reset my networkconfig

that was a question from I followed the first answer :)

cocomac avatar
cn flag
Put `sudo` before the command. E.g., `sudo docker run hello-world`.
Score:1
cn flag

It says you don't have permission to connect to the socket unix:///var/run/docker.sock

Simply, to provide permission you can do:

    sudo chown $USER /var/run/docker.sock

Then continue with your other docker commands like docker pull hello-world

If you want don't want to type sudo before every docker command, you might want to add the currently logged-in user to the docker group:

    sudo usermod -aG docker ${USER}

Then you will need to log out and log in back to apply the new group membership.Now you should be able to run docker commands without sudo as well.

Hope that helps.

Score:0
ve flag

For this issue, you could find the same answer & resolution on: docker_permission_issue

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.