Timeline for How can I use Docker without sudo?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 11 at 22:59 | history | edited | miu | CC BY-SA 4.0 |
Update answer to include info from @overbyte's comment
|
Dec 10 at 11:29 | comment | added | overbyte | Still an issue in 24.10 - maybe a regression? | |
May 3, 2023 at 8:23 | comment | added | A.Casanova |
@Soren this is because you are trying to chown while the docker daemon is running. Stop docker with systemctl stop docker then run the commands of this solution and start it again with systemctl start docker
|
|
Jan 29, 2023 at 12:29 | comment | added | Yaroslav Yakovlev | Worked for me with just adding the group and adding the user to the group, but after reboot. Im on Pop!_OS 20.04 LTS. One might want to reboot, try it out and only if it doesnt work use this solution. | |
Feb 21, 2022 at 11:44 | history | edited | miu | CC BY-SA 4.0 |
added 98 characters in body
|
Oct 10, 2021 at 3:23 | comment | added | miu |
@Soren I just tried it right now again with Ubuntu 20.04 and all my commands from above work fine. If you use the chown command with sudo you shouldn't get any error messages. Try to reboot, log into the root accout and run the two chown commands (no sudo needed). Then logout from the root user account and into your normal user account and try to use docker without sudo . Does it work now?
|
|
Oct 10, 2021 at 3:19 | history | edited | miu | CC BY-SA 4.0 |
Make sure that the user logs out and logs back in again.
|
Oct 8, 2021 at 15:58 | comment | added | Soerendip |
I get chown: changing ownership of '/var/run/docker/netns/ingress_sbox': Operation not permitted
|
|
Apr 12, 2021 at 23:38 | review | Suggested edits | |||
Apr 13, 2021 at 22:36 | |||||
Nov 19, 2020 at 12:06 | history | answered | miu | CC BY-SA 4.0 |