Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
| ... | ... |
@@ -15,6 +15,12 @@ docker-exec - Run a command in a running container |
| 15 | 15 |
|
| 16 | 16 |
Run a process in a running container. |
| 17 | 17 |
|
| 18 |
+The command started using `docker exec` will only run while the container's primary |
|
| 19 |
+process (`PID 1`) is running, and will not be restarted if the container is restarted. |
|
| 20 |
+ |
|
| 21 |
+If the container is paused, then the `docker exec` command will wait until the |
|
| 22 |
+container is unpaused, and then run. |
|
| 23 |
+ |
|
| 18 | 24 |
# Options |
| 19 | 25 |
|
| 20 | 26 |
**-d**, **--detach**=*true*|*false* |
| ... | ... |
@@ -646,7 +646,11 @@ You'll need two shells for this example. |
| 646 | 646 |
|
| 647 | 647 |
The `docker exec` command runs a new command in a running container. |
| 648 | 648 |
|
| 649 |
-The `docker exec` command will typically be used after `docker run` or `docker start`. |
|
| 649 |
+The command started using `docker exec` will only run while the container's primary |
|
| 650 |
+process (`PID 1`) is running, and will not be restarted if the container is restarted. |
|
| 651 |
+ |
|
| 652 |
+If the container is paused, then the `docker exec` command will wait until the |
|
| 653 |
+container is unpaused, and then run. |
|
| 650 | 654 |
|
| 651 | 655 |
#### Examples |
| 652 | 656 |
|