Skip to content

Instantly share code, notes, and snippets.

@hayderimran7
Created April 21, 2015 05:44
Show Gist options
  • Save hayderimran7/43da44ddecd3285fb794 to your computer and use it in GitHub Desktop.
Save hayderimran7/43da44ddecd3285fb794 to your computer and use it in GitHub Desktop.
Run docker without sudo on opensuse
If you have ever used opensuse , you will how much opensuse cares about the holiness of sudo.. want to print a paper? sure but you need sudo access. want to connect to wifi , oh you about you do it with sudo.?
if dont believe me its true, might have a look at a classic rant by father of Linux , Linus Torvalds who literally goes NSFW on opensuse and its shitty policy mechanism on `sudo`. Check here what Linus said : https://plus.google.com/+LinusTorvalds/posts/1vyfmNCYpi5
anyways, if you wana run docker without sudo, normal recommended way as by docker docs, is to do following:
$ sudo usermod -aG docker <username>
where <username> is the user currently logged in to system.
so for the mighty highness of opensuse, where everything seems to have shitty grip of reality , here is complete step by step procedure to run docker without sudo :
$ export PATH+=:/usr/sbin
$ sudo usermod -aG docker <username>
$ sudo chown <username> /var/run/docker.sock
and thats it...
please opensuse, if we are the user of your OS, please let us enjoy the ''privileges' of going sudo while we can ;)
cheers:)
@pchrz
Copy link

pchrz commented Jun 14, 2021

Thanks so much for this, this was driving me nuts.
~6 year later, still same issues. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment