mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Documented special case of container memory limits in manpages
If a container is started with a memory limit of 0, no memory limit is applied. To prevent this from causing confusion, make interaction explicit in docs. Docker-DCO-1.1-Signed-off-by: Matthew Heon <mheon@redhat.com> (github: mheon)
This commit is contained in:
parent
8622641b58
commit
ba1c0f4c81
2 changed files with 3 additions and 3 deletions
|
@ -100,8 +100,8 @@ container can be started with the **--link**.
|
|||
**-m**, **-memory**=*memory-limit*
|
||||
Allows you to constrain the memory available to a container. If the host
|
||||
supports swap memory, then the -m memory setting can be larger than physical
|
||||
RAM. The memory limit format: <number><optional unit>, where unit = b, k, m or
|
||||
g.
|
||||
RAM. If a limit of 0 is specified, the container's memory is not limited. The
|
||||
memory limit format: <number><optional unit>, where unit = b, k, m or g.
|
||||
|
||||
**-P**, **-publish-all**=*true*|*false*
|
||||
When set to true publish all exposed ports to the host interfaces. The
|
||||
|
|
|
@ -39,7 +39,7 @@ CPU shares in relative weight. You can increase the priority of a container with
|
|||
|
||||
.TP
|
||||
.B -m, --memory=\fImemory-limit\fR:
|
||||
Allows you to constrain the memory available to a container. If the host supports swap memory, then the -m memory setting can be larger than physical RAM. The memory limit format: <number><optional unit>, where unit = b, k, m or g.
|
||||
Allows you to constrain the memory available to a container. If the host supports swap memory, then the -m memory setting can be larger than physical RAM. If a limit of 0 is specified, the container's memory is not limited. The memory limit format: <number><optional unit>, where unit = b, k, m or g.
|
||||
|
||||
.TP
|
||||
.B --cidfile=\fIfile\fR:
|
||||
|
|
Loading…
Reference in a new issue