Podman running container limits
from zeGoomba@programming.dev to selfhosted@lemmy.world on 04 Dec 06:44
https://programming.dev/post/22447000
from zeGoomba@programming.dev to selfhosted@lemmy.world on 04 Dec 06:44
https://programming.dev/post/22447000
I was wondering, Do you know of a limit on how many rootless conrainers can one run on a linux host?
Running fedora server, I have resources but once I pass about 15 containers podman starts to hang and crash.
I then need to manually delete the storage folder under ~./local/share/…
for podman to work again.
It might be related to user ns keep-id flag.
threaded - newest
I’m not convinced what you run into is a specific podman issue. It’s a resource issue and configuration issue likely. “vanila” podman with proper rootless containers will run as much workload as machine can handle from my experience. My company costomers seem to be running production workloads with it just fine.
Oh wait, by rootless container you really meant running podman rootless? still don’t see an issue though. What specifically are you doing? I mean, what’s the configuration and what’s the workload?
My config is nothing special. Running all containers as user 1000 via qadlets. Sporadically, I get:
The practical limit to the number of containers you can run on one system is in the high hundreds or more thousands, depending on how you configure some things, and your available hardware. It’s certainly more than you’ll even use unless you get into some auto-scaling swarm config stuff.
The issue is more about resource limits, and access to shared resources. I’d start by trying to figure out if there are certain specific containers that don’t play well together. Bring your setup online slowly, one container at a time, and take note of when things start to get funky. Then start testing combinations of those specific containers. See if there’s one you can remove from the mix that suddenly makes things more stable.
Small update.
It seems to be caused by
UserNS=keep-id
. when adding it to an image with a lot of files, podman hangs for a while, then crashes when doind itschown
. This causes some layers to be invalid.