mirror of
https://github.com/louislam/dockge.git
synced 2026-03-03 02:06:55 -05:00
Can't set memory ou CPU limits #234
Labels
No labels
bug
feature-request
help
help wanted
invalid-format
need-reproduce-steps
question
security
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dockge-louislam#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wolfgangquatz on GitHub (Nov 10, 2025).
⚠️ Please verify that this bug has NOT been reported before.
🛡️ Security Policy
Description
Hello!
I'm not able to set cpu or memory limits on compose. Already try lots of ways of compose but do not apply.
If I check "docker stats" to not show the limits that I set on compose and the containers are over the limit that I set.
Examples that I try:
services: ispyagentdvr: image: mekayelanik/ispyagentdvr:latest container_name: ispyagentdvr environment: - PUID=0 - PGID=0 - AGENTDVR_WEBUI_PORT=8090 - TZ=America/Sao_Paulo volumes: - /mnt/MainStorageShare/Docker/iSpy/config:/AgentDVR/Media/XML - /mnt/No Redundancy/IPCamera:/AgentDVR/Media/WebServerRoot/Media - /mnt/MainStorageShare/Docker/iSpy/command:/AgentDVR/Commands ports: - 8090:8090 - 3478:3478/udp - 50000-50100:50000-50100/udp restart: unless-stopped memswap_limit: "104857600" #HERE I TRY USING BYTES INSTEAD "M" OR "G" mem_limit: "104857600" networks: {}services: ispyagentdvr: image: mekayelanik/ispyagentdvr:latest container_name: ispyagentdvr environment: - PUID=0 - PGID=0 - AGENTDVR_WEBUI_PORT=8090 - TZ=America/Sao_Paulo volumes: - /mnt/MainStorageShare/Docker/iSpy/config:/AgentDVR/Media/XML - /mnt/No Redundancy/IPCamera:/AgentDVR/Media/WebServerRoot/Media - /mnt/MainStorageShare/Docker/iSpy/command:/AgentDVR/Commands ports: - 8090:8090 - 3478:3478/udp - 50000-50100:50000-50100/udp deploy: resources: reservations: memory: 100m # #HERE I ALSO TRY USING BYTES INSTEAD "M" OR "G" BUT NO SUCESS limits: memory: 100m cpus: "0.2" networks: {}By send "docker stats" oh truenas shell I recive:
"a5376ab7620a ispyagentdvr 42.32% 282.4MiB / 15.49GiB 1.78% 57MB / 872kB 0B / 0B 68 "
The memory limit is the system max memory, is't applying what I try define on compose.
👟 Reproduction steps
Try compose:
deploy: resources: reservations: memory: 100m # #HERE I ALSO TRY USING BYTES INSTEAD "M" OR "G" BUT NO SUCESS limits: memory: 100m cpus: "0.2"or:
memswap_limit: "104857600" #HERE I TRY USING BYTES INSTEAD "M" OR "G" mem_limit: "104857600"👀 Expected behavior
Set memory and cpu limit of container and the result showing on send comand "docker stats"
😓 Actual Behavior
Memory and cpu limit are not applying.
Dockge Version
Version: 1.5.0
💻 Operating System and Arch
Truenas Scale - 25.10.0 - Goldeye
🌐 Browser
Chrome
🐋 Docker Version
Docker version 28.3.1, build 38b7060
🟩 NodeJS Version
No response
📝 Relevant log output
@cyril59310 commented on GitHub (Nov 10, 2025):
In your compose file, use:
This will limit the CPU and memory resources of your container

@wolfgangquatz commented on GitHub (Nov 10, 2025):
Unfortunaly not work. It not apply the limits.