this post was submitted on 01 Jun 2026
305 points (99.0% liked)

Programmer Humor

31632 readers
1323 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
all 28 comments
sorted by: hot top controversial new old
[–] savvywolf@pawb.social 9 points 11 hours ago

This is your regular reminder that docker isn't a sandboxing solution and shouldn't be treated as one.

[–] ranzispa@mander.xyz 18 points 14 hours ago (1 children)

TIL: uninstall docker on any machine with Claude code installed.

[–] kunaltyagi@programming.dev 12 points 13 hours ago* (last edited 13 hours ago)

This was known for a decade now? That's why adding a user to docker group was always an additional step with a warning

And also why podman works the way it does

[–] BlueKey@fedia.io 37 points 19 hours ago (1 children)

Podman for the rescue. Runs fully under current user pribileges, so no sudo or other root-privileges needed to run containers.
(Especially useful for devs who want containers but should not get sudo.)

[–] GreenKnight23@lemmy.world 7 points 17 hours ago

there's just that pesky IBM thing that's constantly hanging around in the back waiting to pull the rug you're standing on.

[–] JRaccoon@discuss.tchncs.de 33 points 19 hours ago

Never ever add any users to the docker group. Rootless mode is cool tho (albeit with some caveats)

[–] uuj8za@piefed.social 84 points 22 hours ago* (last edited 22 hours ago) (4 children)

I mean, there's a big ol' warning in the docs: https://docs.docker.com/engine/install/linux-postinstall/

The docker group grants root-level privileges to the user

But, I guess Docker doesn't really tell you not to do this... and I feel like a lot of mac users are not used to adding sudo at the front of docker commands so... idk.

[–] SirHaxalot@nord.pub 38 points 20 hours ago (1 children)

… and the Nextcloud developers think it’s completely reasonable to build a plugin system where you give this access to a web facing PHP application.

[–] prettybunnys@piefed.social 7 points 14 hours ago

What could possibly go wrong?

[–] SpaceNoodle@lemmy.world 44 points 22 hours ago (1 children)

Sounds like Docker is just inherently unsecure.

[–] hperrin@lemmy.ca 18 points 22 hours ago (1 children)

In the same way that sudo is.

[–] cornshark@lemmy.world 45 points 22 hours ago (4 children)

Sudo makes you enter your password and docker doesn't?

[–] tabular@lemmy.world 8 points 15 hours ago

Sudo can/usually does ask for password - but if you're feeling lucky you can use sudo without a password.

(Currently doing that after repeatedly failing to install an OS and have not yet felt compelled to change it back).

[–] locuester@lemmy.zip 33 points 21 hours ago (1 children)

Docker does by default - it only works if you use sudo. But the docs tell you to add yourself to the docker group (which requires sudo to do). Then running docker doesn’t require sudo anymore.

[–] squaresinger@lemmy.world 40 points 21 hours ago

Yeah, that's a terrible decision in the docs. Don't ever add a path where anything on the shell can execute user-modifyable code as root.

As soon as you do that, you lose any protection that comes from separating root users and non-root users. Because now any malicious program can just use docker to elevate its code to root.

[–] Zikeji@programming.dev 21 points 21 hours ago

Or don't give your user docker and use sudo to use the docker CLI to get the same effect. Hell, you could even alias docker as sudo docker to get the same feel.

[–] hperrin@lemmy.ca 4 points 21 hours ago

Only if you tell it to.

[–] ChromaticMan@lemmy.world 18 points 19 hours ago (1 children)

Sadly, nobody reads docs anymore. Now that I’m thinking, people never read the docs.

[–] glibg10b@lemmy.zip 3 points 14 hours ago

I have never even looked at the Docker docs

[–] marlowe221@lemmy.world 56 points 21 hours ago (1 children)

Slowly reaches for shotgun…

[–] daniskarma@lemmy.dbzer0.com 14 points 18 hours ago

I'm sorry Dave, I'm afraid I can't allow you to do that.

[–] blarth@thelemmy.club 63 points 22 hours ago (3 children)

Podman will save us from the Terminators.

[–] craftrabbit@lemmy.zip 54 points 22 hours ago

I remember when I first needed to run containers I specifically went with podman because it doesn't require root access out of some vague fear that docker can be exploited to break my stuff. I feel validated.

[–] msage@programming.dev 8 points 18 hours ago

LXC! LXC! LXC!

[–] tatterdemalion@programming.dev 4 points 17 hours ago

Rootless docker exists now. Not sure why people still don't use it.

[–] diabetic_porcupine@lemmy.world 2 points 20 hours ago

Is that normal config?