Also, chained/quoted shell does not work
Signed-off-by: Julien Maitrehenry <julien.maitrehenry@me.com>
| ... | ... |
@@ -39,6 +39,14 @@ The command started using `docker exec` only runs while the container's primary |
| 39 | 39 |
process (`PID 1`) is running, and it is not restarted if the container is |
| 40 | 40 |
restarted. |
| 41 | 41 |
|
| 42 |
+COMMAND will run in the default directory of the container. It the |
|
| 43 |
+underlying image has a custom directory specified with the WORKDIR directive |
|
| 44 |
+in its Dockerfile, this will be used instead. |
|
| 45 |
+ |
|
| 46 |
+COMMAND should be an executable, a chained or a quoted command |
|
| 47 |
+will not work. Example: `docker exec -ti my_container "echo a && echo b"` will |
|
| 48 |
+not work, but `docker exec -ti my_container sh -c "echo a && echo b"` will. |
|
| 49 |
+ |
|
| 42 | 50 |
## Examples |
| 43 | 51 |
|
| 44 | 52 |
### Run `docker exec` on a running container |