r/ProgrammerHumor • • Sep 05 '26

Meme memorySafeDocker

Post image
4.2k Upvotes

278 comments sorted by

View all comments

246

u/minus_minus Sep 05 '26

Podman is right there. 

58

u/ineyy Sep 05 '26

Anyone with a lot of experience with this? I had mixed feelings, it felt slower at times for some reason, maybe network is handled differently. Then I ran into some weird issues, and I didn't know if it was a a difference between podman and docker, or just some anomaly so I gave up and switched back to docker engine.

105

u/Deathisfatal Sep 05 '26

Podman uses rootless containers with the current user's privileges by default, whereas docker runs everything under a single daemon that runs as root with full permission to access everything. Some things which work out of the box with docker don't work as easily with podman because of this but there are often workarounds that just take a bit of effort or configuration

14

u/PositiveBit01 Sep 05 '26

I think podman is much better with sane defaults.

I also don't use it, because everybody already has docker compose setups that assume docker and I got tired of fiddling with anything I wanted to run that I didn't write myself.

9

u/slaymaker1907 Sep 05 '26

The biggest problem I’ve run into at work with it is that running containers seems to allocate some mystery disk usage that can’t be cleaned up except with either root or forcing Podman to remove everything: all containers, images, etc. Just stopping and removing things one at a time will not work.

3

u/Grubs01 Sep 06 '26

From volumes? You can use podman unshare to deal with those rather than sudo.

1

u/slaymaker1907 Sep 06 '26

Thanks, I’ll have to give that a go when I get back to work.

3

u/lazy_lombax Sep 05 '26

especially with podman-docker it's basically a drop in replacement for most

28

u/joro550 Sep 05 '26

Ive tried to use podman several time, it is NOT a drop in replacement

11

u/rinart73 Sep 05 '26

Not a drop in replacement, you need to tweak docker files otherwise podman doesn't accept them

1

u/henryponco Sep 06 '26

In theory sure. In practise it’s very unstable and not suitable for real world development imo

2

u/Grubs01 Sep 06 '26

How long ago did you try? In the days of red hat 7 it was dangerous. In 8 it was better but had bugs and missing features. Since 9 it’s been pretty solid.

2

u/lazy_lombax Sep 06 '26

yeah, I use it everyday running quadlets and multiple development containers and never had an issue. just remove the root assumptions and you're good to go

1

u/henryponco Sep 10 '26

2+ years ago! Awesome, sounds like it's worth giving another shot.