mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03: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:
committed by
Tibor Vass
parent
0d41e6a758
commit
e4401e3fe1
@@ -666,7 +666,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 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user