cruizba / ubuntu-dind

A docker image based in ubuntu to run docker containers inside docker containers
Apache License 2.0
189 stars 86 forks source link

containerd crashes when memory usage is high #34

Open sabbatical66 opened 1 week ago

sabbatical66 commented 1 week ago

Thanks for this repo, I haven't been able to figure it out myself for a long time! During usage, I encountered an issue: when I start many new containers and the total memory reaches its limit, containerd crashes and automatically restarts. This causes dockerd to lose connection, and all containers started by the previous containerd process are terminated. Normally, containerd or dockerd should have higher priority and should kill individual running containers before an out-of-memory (OOM) situation occurs. I don't know how to handle this issue myself.

cruizba commented 1 week ago

Mmm are you sure this isn't a problem of containerd itself? This repository just install docker in a standard ubuntu image. I have no control over it.

sabbatical66 commented 4 days ago

Mmm are you sure this isn't a problem of containerd itself? This repository just install docker in a standard ubuntu image. I have no control over it.

Yes, I ve seen the Dockerfile. However in this case, what happens inside the container is indeed different from what happens on the physical machine...