Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker daemon (dockerd) consumes all ram and slows system to a crawl

Featured Replies

Hi, a strange issue started for me a couple of days ago. The Docker daemon has started eating all the system memory, which brings the system to a complete crawl, to the point a shutdown takes 3+ hours and I can't ssh into the server. I have 32GB and usually only about 10GB will be used. None of the containers seem to be using the RAM, it's the Docker daemon itself.

 

Last night I destroyed my Docker directory (/mnt/user/system). I use a directory instead of image, as I have about 70 containers, so prefer not to have a fixed size. Last time this occurred about a year ago, it was due to a corrupt Docker image caused by a hard crash from the Realtek driver plugin, and recreating the Docker image resolved the issue.

When re-installing the containers this time, the issue started again. No particular container stands out for high memory usage.

 

Here's some screenshots I took a few minutes ago from Glances, which is still refreshing every now and then since it was already open.

 

image.png.35dfa8fac290c0a1bce2cd758ee8833d.png

 

image.thumb.png.82fde765fabd23a74481971f66ddd2e2.png

 

image.thumb.png.ef1fc7b3948c6b519f2aca4086ae65ec.png

 

 

I was able to stop the Docker daemon and the system returned to normal:

root@Field:~# /etc/rc.d/rc.docker stop
rc.docker: Stopping containers...
rc.docker: Unraid managed containers stopped.
rc.docker: Stopping network...
rc.docker: Network stopped.
rc.docker: Stopping Docker daemon...
Waiting 30 seconds for Docker daemon to die.field-diagnostics-20250514-1931.zip
rc.docker: Docker daemon...  Stopped.

 

As soon as it showed "rc.docker: Docker daemon...  Stopped." in my ssh session, I heard the fans spin down and the system became responsive, allowing me to get the diagnostics report that was run while the system was slowed down.

Solved by SakabaRihiro

  • Community Expert

Try enabling the containers one or a few at a time to see if you can find the culprit, also would recommend recreating the docker folder as an image instead, docker folders can sometimes cause weird issues.

  • Author
1 hour ago, JorgeB said:

Try enabling the containers one or a few at a time to see if you can find the culprit, also would recommend recreating the docker folder as an image instead, docker folders can sometimes cause weird issues.

I had other issues using Docker images, such as containers sometimes failing to start up, sometimes even databases would crash while open, resulting in corruption. Had to restore a container from a backup 3 days in a row once.

 

This hasn't happened since I moved to a directory, so I don't trust the stability of Docker images. Are you aware of anyone having the same issue I am due to a Docker directory? I don't want to risk having my containers becoming corrupted at random again if I can avoid it, I'll seriously consider changing OS if that's the only option.

 

I'll try recreating the Docker directory for now and try to identify the culprit, if it is caused by a specific container starting. The slowdowns don't occur as soon as the containers are spun up though. Any advice for trying to find the needle in the haystack?

  • Community Expert
1 hour ago, SakabaRihiro said:

Are you aware of anyone having the same issue I am due to a Docker directory?

Don't remember if I've seen this specific issue, but I've seen a lot of different ones.

 

1 hour ago, SakabaRihiro said:

Any advice for trying to find the needle in the haystack?

Try using just half of them, if the same try the other half, then keep drilling down.

  • 5 weeks later...
  • Author
  • Solution

Tried starting up a small set of docker containers, the system died again. Tried with another set instead, system died. Tried with another and the system again died.

Then tried with some others, system was stable. Started others, system was stable. Eventually re-enabled all containers, system has been up for a couple of weeks now without issues.

I have no idea what the cause was, I changed nothing.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.