Add note about not using free to determine swap availability inside container.

This commit is contained in:
Jeff Geerling 2018-06-06 16:55:10 -05:00 committed by Joao Fernandes
parent 8305c23792
commit 38ecdd498f
1 changed files with 2 additions and 0 deletions

View File

@ -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