mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add some details about the lifecycle of commands started with docker exec
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
703ef3caa8
commit
447387474a
2 changed files with 11 additions and 1 deletions
|
@ -15,6 +15,12 @@ docker-exec - Run a command in a running container
|
||||||
|
|
||||||
Run a process in a running container.
|
Run a process in a running container.
|
||||||
|
|
||||||
|
The command started using `docker exec` will only run while the container's primary
|
||||||
|
process (`PID 1`) is running, and will not be restarted if the container is restarted.
|
||||||
|
|
||||||
|
If the container is paused, then the `docker exec` command will wait until the
|
||||||
|
container is unpaused, and then run.
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
|
|
||||||
**-d**, **--detach**=*true*|*false*
|
**-d**, **--detach**=*true*|*false*
|
||||||
|
|
|
@ -646,7 +646,11 @@ You'll need two shells for this example.
|
||||||
|
|
||||||
The `docker exec` command runs a new command in a running container.
|
The `docker exec` command runs a new command in a running container.
|
||||||
|
|
||||||
The `docker exec` command will typically be used after `docker run` or `docker start`.
|
The command started using `docker exec` will only run while the container's primary
|
||||||
|
process (`PID 1`) is running, and will not be restarted if the container is restarted.
|
||||||
|
|
||||||
|
If the container is paused, then the `docker exec` command will wait until the
|
||||||
|
container is unpaused, and then run.
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue