You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docker): expose memory (RAM) limit as an Advanced View field
Add a "Memory limit" field to the Docker Add/Edit form (Advanced View)
that maps to docker --memory, instead of requiring users to hand-write
it in Extra Parameters. Empty leaves the container unlimited (unchanged
default). The value round-trips through the container XML template
(<Memory>) and is emitted as --memory=<value> in the docker create
command.
Closes OS-467
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: emhttp/languages/en_US/helptext.txt
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2367,6 +2367,12 @@ If you wish to append additional arguments AFTER the container definition, you c
2367
2367
The content of this field is container specific.
2368
2368
:end
2369
2369
2370
+
:docker_memory_limit_help:
2371
+
The maximum amount of memory the container is allowed to use (Docker <code>--memory</code>).<br>
2372
+
Use a plain number for bytes, or a suffix: <b>b</b>, <b>k</b>, <b>m</b>, <b>g</b> (for example <b>512m</b> or <b>2g</b>). The minimum allowed value is 6m.<br>
2373
+
Leave empty for no limit (default). If you also set <code>--memory</code> in Extra Parameters, that value takes precedence.
2374
+
:end
2375
+
2370
2376
:docker_cpu_pinning_help:
2371
2377
Checking a CPU core(s) will limit the container to run on the selected cores only. Selecting no cores lets the container run on all available cores (default)
Copy file name to clipboardExpand all lines: emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1148,6 +1148,11 @@ function prepareCategory() {
1148
1148
1149
1149
:docker_extra_parameters_help:
1150
1150
1151
+
_(Memory limit)_:
1152
+
: <input type="text" name="contMemory" placeholder="_(unlimited)_" pattern="[0-9]+[bkmgBKMG]?" title="_(Number of bytes, or a number followed by b, k, m or g (e.g. 512m, 2g))_">
0 commit comments