Answer product-owner round 3: 0 🔴, 1 🟡 (0 misread); a call with a --memory of 0 anywhere passes through unchanged, so neither docker's -m 0 nor a container's grep -m 0 is dropped or overridden
This commit is contained in:
@@ -16,7 +16,8 @@ first on the command's PATH. That docker adds the limits a container lacks, then
|
||||
|
||||
- A container that sets neither limit gets a memory limit and a swap limit, both the share.
|
||||
- A container that sets one of them keeps it, and gets the other at the same size.
|
||||
- A --memory-swap of -1, unlimited swap, or a --memory of 0 is dropped and replaced.
|
||||
- A --memory-swap of -1, unlimited swap, is dropped and replaced.
|
||||
- A --memory of 0, unlimited memory, leaves the call as it is.
|
||||
|
||||
Every other docker call goes through unchanged. A docker compose service, and a docker named by its
|
||||
full path, get no cap: give those containers their own limits.
|
||||
|
||||
Reference in New Issue
Block a user