mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #26320 from yongtang/09052016-man-docker-create
Update man page for `docker create` to add `--rm` flag
(cherry picked from commit d7594d23c8
)
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
This commit is contained in:
parent
a8c297c254
commit
f1d590c45b
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,7 @@ docker-create - Create a new container
|
|||
[**--privileged**]
|
||||
[**--read-only**]
|
||||
[**--restart**[=*RESTART*]]
|
||||
[**--rm**]
|
||||
[**--security-opt**[=*[]*]]
|
||||
[**--storage-opt**[=*[]*]]
|
||||
[**--stop-signal**[=*SIGNAL*]]
|
||||
|
@ -317,6 +318,9 @@ unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap.
|
|||
**--restart**="*no*"
|
||||
Restart policy to apply when a container exits (no, on-failure[:max-retry], always, unless-stopped).
|
||||
|
||||
**--rm**=*true*|*false*
|
||||
Automatically remove the container when it exits. The default is *false*.
|
||||
|
||||
**--shm-size**=""
|
||||
Size of `/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`.
|
||||
Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes). If you omit the unit, the system uses bytes.
|
||||
|
|
Loading…
Reference in a new issue