Doesn't support soft memory limition (memory reversation) or docker compose V3
See original GitHub issuecurrently this project only supports docker compose v2 and doesn’t tallow us to specify the soft memory limitation.
suggestion: adding supports to docker compose file v3 resource section, which supports both hard and soft limitation
resources:
limits:
cpus: '0.001'
memory: 50M
reservations:
cpus: '0.0001'
memory: 20M
Issue Analytics
- State:
- Created 7 years ago
- Reactions:14
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Setting Memory And CPU Limits In Docker | Baeldung
To constrain memory, we need to use the m parameter: $ docker run -m 512m nginx. We can also set a soft limit...
Read more >Runtime options with Memory, CPUs, and GPUs
--memory-reservation, Allows you to specify a soft limit smaller than --memory which is activated when Docker detects contention or low memory on the...
Read more >Docker Compose — Memory Limits - Linux Hint
We shall be sticking to the version 2.4 for our docker-compose.yml files as ... 3 which is more recent but it doesn't support...
Read more >How to specify Memory & CPU limit in docker compose version 3
But it fails while using version 3, putting them under deploy section doesn't seem worthy unless I am using swarm mode. Can somebody...
Read more >How to Set Docker Memory and CPU Usage Limit - phoenixNAP
Limit Docker memory and CPU usage with the help of this guide. ... see are not set, setting the soft limit with --memory-reservation...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

any update on this? I’m also waiting for this feature
@liorchen took a crack at memory reservation and has a pull request in, but it’s failing a couple of tests. If I get a chance, I’ll see if I can address those, but I wanted to bring them up here in case somebody else can get to them first. Here’s an example: