Score:0

Unable to run docker without sudo

fi flag

I have followed the commands for the post-installation to run docker without sudo, but unfortunately, it still will not work.

I have done the following:

  • Created the docker group Added the user to the group
  • Did the newgrp docker command each time
  • Rebooted the system (sudo reboot)
  • Logged out/logged in
  • Changed the docker.sock ownership to that user and the docker group
  • Reviewed the .bashrc file to see if there was any commands related to docker that may affect it
  • Checked the config docker file and the host is /var/run/docker.sock
  • Deleted the docker group and re-did all the steps

I've read through multiple posts and still unable to get it working.

Command prompt snipit: https://i.stack.imgur.com/UPbE8.png

Any ideas what may be the issue?

Thank you

Score:0
fi flag

To fix this, I created a new user and added that user to the docker group. That allowed me to run docker without sudo.

I sit in a Tesla and translated this thread with Ai:

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.