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.

Easier way to limit memory in docker perhaps with the folder view

Featured Replies

Going through doing some memory limiting for certain docker containers. 

Main objective is to not have to click and edit each individually. So a GUI like cpu pinning but for memory.

Possibly quite cool (but more work) to limit it as per folder group instead of each individually, as that way it is roughly grouped. 

Anyway what do you think anyone else like a box for memory allocation instead of going to advanced then extra parameters & entering --memory=0.5G etc

Edited by dopeytree

16 hours ago, dopeytree said:

Thinking it would be quite cool to limit it as per folder group instead of each individually, as that way it is roughly grouped. 

I am not really sure what the above is about, but i can absolutely get behind having dedicated template box for memory limits.

  • Author

Screen shot of docker folder groups attached. 

Be nice to say this group can share this much ram etc. Just less hassle than doing each one individually but either process would be awesome. 

 

Think cpu pinning for ram.

Screenshot2025-04-15at17_40_38.thumb.png.d69e391a52abbfb7326cc4bb3f90eb38.png

But Docker Folder is a Community Plugin, I don't see how that would work if this is not possible on base Unraid.

12 hours ago, ChatNoir said:

But Docker Folder is a Community Plugin, I don't see how that would work if this is not possible on base Unraid.

Yeah "folders" are just a visual thing not an actual grouping of containers, I dont know if there is a way to set limits across a group of containers in docker.

  • Author

Guys the task is to make a GUI way to manage memory of docker containers (limit any memory leaks in third party code).

For example I have limited everything to 0.5GB except frigate, homeassistant & plex has up to 4GB each. This helps eliminate a creep up to 8GB which then causes problems with the unraid GUI access (all container ports work fine but unraidGUI goes unresponsive).

Ok maybe not with 'docker folder' but there are other ways of doing it. 

Similar was achieved in CPU pinning etc. We also have network settings & other things.

Perhaps add a memory tab to system and then have a general limit that can be set in a single setting for all dockers. i.e 
limit docker contain to 0.5GB unless a custom setting is set in each docker. 

So then within docker config each can be increased as needed. That would be the most time efficient way to achieve it.

Also very simple code. Could be done in % but most may prefer GB.
 

Edited by dopeytree

  • Author

What do folks use for testing dev plugins? I don't want to run it on live system. 

Docker natively lets you set limits per container, but not easily for a group.
I think for a group you'd need to lean on standard linux tooling like cgroups and manage the cgroup's resources.

You can assign a container to a cgroup as explained here: https://docs.docker.com/reference/cli/docker/container/run/#cgroup-parent

You'd also have to create and configure the cgroup in this scenario

 

 

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.