-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Docker compose service causes a kernel panic due to resource starvation #10567
Comments
have you seen my comment #8849 (comment) ? |
Reading your issue more carefully I notice you have "4 docker compose files", so I assume you run 4 |
Running all the containers in one single compose is not possible, as I want to maintain some level of isolation using stacks. Here are the 4 stacks:
I did check your comment regarding the variable, COMPOSE_PARALLEL_LIMIT Where can I set it up? I installed docker using the install script from here: https://github.com/docker/docker-install EDIT: I did set the variable COMPOSE_PARALLEL_LIMIT=8 under /etc/environment but I do end up with the same issue. When I restart the system, a lot of resources get used up by the dockerd. My load averages shoot up to 6.0 while starting all the services. However, once they are up, they do normalize to around 1.2 - 1.7 |
COMPOSE_PARALLEL_LIMIT applies to a single run of the |
AFAICT this issue is not related to compose, but to startup management : same would apply if you just were using plain |
Description
This is actually a problem on low resource devices like raspberry pi 4. I have a 8GB raspberry pi, and need to run 4 docker compose files on boot. On boot when the docker service starts, all the services compete for resources, although I have enough ram, the containers get starved for CPU resources which results in a kernel panic and raspberry pi crashes.
Here clearly if I can start the compose files in a staggered manner, it would totally prevent this.
When inspecting the running services using top, I saw that dockerd was using a lot of CPU and load averages were around 6.0 - 8.0
Steps To Reproduce
On raspberry pi 4 8GB running Ubuntu mate 22.04, I have 4 docker compose files that need to be run.
The compose files are for self hosted services like pihole, bitwarden, memos etc.
When starting the system, all the services run in parallel and this leads to a CPU bottleneck, since most services require a decent amount of compute on startup, but once they are running the utilization minimizes.
If the resource requirements are high for a long time, after a while it causes a kernel panic and the raspberry pi crashes.
Compose Version
Docker Environment
Anything else?
This is similar to issue #8849, #5422
The text was updated successfully, but these errors were encountered: