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.

How to limit Docker containers control over server

Featured Replies

There's been a number of times where a misconfigured Docker container has taken over my Unraid server. For example, some containers have an automatic restart on failure. When this occurs, the misconfigured container takes over my server and the server is no longer responding. I can't do anything to stop the container because the server is no longer responsive. I also cannot login directly to the physical machine because the login timeout of 60 seconds. The only solution has been to reset the machine.

Is there a configuration setting to prevent any docker container from doing whatever it is doing that prevents the server from responding?

  • Community Expert

I usually reduce available available cpu to my dockers so Unraid has dedicated cores, this generally stops the server getting locked out due to compute heavy processes.


With Advanced View toggled (or on cpu pinning page in settings), you can either do this in the CPU pinning section by selecting all cores except the first 2 cpu, or you can do the same by adding something like this to Extra Parameters instead: 

--cpuset-cpus=4-12

Note adjust cpu numbers as per your available cores.

This invokes the same command, but I personally find it more convenient for many dockers on high cpu count machines.

If you are hitting memory limits, there are options for that also, but restricting cpu usually does the job.

Edited by tjb_altf4

  • Author

Is there a configuration to make sure the docker service is not a higher priority than critical Unraid/OS processes?

  • Community Expert
4 hours ago, Jaybau said:

Is there a configuration to make sure the docker service is not a higher priority than critical Unraid/OS processes?

Not that is part of Unraid, no.
I believe you could do something with cgroups to deprioritise processes, but the simpler option is the one I mentioned already.

  • Author

Looks like one of the containers(s) has a memory leak. So I'm limiting the memory per container.

Would be great for a better/safer way to limit memory/cpu.

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.