mirror of https://github.com/docker/docs.git
Add note about not using free to determine swap availability inside container.
This commit is contained in:
parent
8305c23792
commit
38ecdd498f
|
@ -118,6 +118,8 @@ Its setting can have complicated effects:
|
|||
- If `--memory-swap` is explicitly set to `-1`, the container is allowed to use
|
||||
unlimited swap, up to the amount available on the host system.
|
||||
|
||||
- Inside the container, tools like `free` report the host's available swap, not what's available inside the container. Don't rely on the output of `free` or similar tools to determine whether swap is present.
|
||||
|
||||
#### Prevent a container from using swap
|
||||
|
||||
If `--memory` and `--memory-swap` are set to the same value, this prevents
|
||||
|
|
Loading…
Reference in New Issue