|
@@ -303,7 +303,7 @@ Json Parameters:
|
|
|
for the container.
|
|
|
- **User** - A string value specifying the user inside the container.
|
|
|
- **Memory** - Memory limit in bytes.
|
|
|
-- **MemorySwap** - Total memory limit (memory + swap); set `-1` to disable swap
|
|
|
+- **MemorySwap** - Total memory limit (memory + swap); set `-1` to enable unlimited swap.
|
|
|
You must use this with `memory` and make the swap value larger than `memory`.
|
|
|
- **MemoryReservation** - Memory soft limit in bytes.
|
|
|
- **KernelMemory** - Kernel memory limit in bytes.
|
|
@@ -1595,7 +1595,7 @@ Query Parameters:
|
|
|
- **rm** - Remove intermediate containers after a successful build (default behavior).
|
|
|
- **forcerm** - Always remove intermediate containers (includes `rm`).
|
|
|
- **memory** - Set memory limit for build.
|
|
|
-- **memswap** - Total memory (memory + swap), `-1` to disable swap.
|
|
|
+- **memswap** - Total memory (memory + swap), `-1` to enable unlimited swap.
|
|
|
- **cpushares** - CPU shares (relative weight).
|
|
|
- **cpusetcpus** - CPUs in which to allow execution (e.g., `0-3`, `0,1`).
|
|
|
- **cpuperiod** - The length of a CPU period in microseconds.
|