|
@@ -46,7 +46,7 @@ docker-create - Create a new container
|
|
|
[**-m**|**--memory**[=*MEMORY*]]
|
|
|
[**--mac-address**[=*MAC-ADDRESS*]]
|
|
|
[**--memory-reservation**[=*MEMORY-RESERVATION*]]
|
|
|
-[**--memory-swap**[=*MEMORY-SWAP*]]
|
|
|
+[**--memory-swap**[=*LIMIT*]]
|
|
|
[**--memory-swappiness**[=*MEMORY-SWAPPINESS*]]
|
|
|
[**--name**[=*NAME*]]
|
|
|
[**--net**[=*"bridge"*]]
|
|
@@ -230,11 +230,14 @@ reservation. So you should always set the value below **--memory**, otherwise th
|
|
|
hard limit will take precedence. By default, memory reservation will be the same
|
|
|
as memory limit.
|
|
|
|
|
|
-**--memory-swap**=""
|
|
|
- Total memory limit (memory + swap)
|
|
|
+**--memory-swap**="LIMIT"
|
|
|
+ A limit value equal to memory plus swap. Must be used with the **-m**
|
|
|
+(**--memory**) flag. The swap `LIMIT` should always be larger than **-m**
|
|
|
+(**--memory**) value.
|
|
|
|
|
|
- Set `-1` to disable swap (format: <number>[<unit>], where unit = b, k, m or g).
|
|
|
-This value should always larger than **-m**, so you should always use this with **-m**.
|
|
|
+ The format of `LIMIT` is `<number>[<unit>]`. Unit can be `b` (bytes),
|
|
|
+`k` (kilobytes), `m` (megabytes), or `g` (gigabytes). If you don't specify a
|
|
|
+unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap.
|
|
|
|
|
|
**--memory-swappiness**=""
|
|
|
Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100.
|