github.com/eikeon/docker@v1.5.0-rc4/docs/man/docker-exec.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % JUNE 2014 4 # NAME 5 docker-exec - Run a command in a running container 6 7 # SYNOPSIS 8 **docker exec** 9 [**-d**|**--detach**[=*false*]] 10 [**--help**] 11 [**-i**|**--interactive**[=*false*]] 12 [**-t**|**--tty**[=*false*]] 13 CONTAINER COMMAND [ARG...] 14 15 # DESCRIPTION 16 17 Run a process in a running container. 18 19 The command started using `docker exec` will only run while the container's primary 20 process (`PID 1`) is running, and will not be restarted if the container is restarted. 21 22 If the container is paused, then the `docker exec` command will wait until the 23 container is unpaused, and then run 24 25 # OPTIONS 26 **-d**, **--detach**=*true*|*false* 27 Detached mode: run command in the background. The default is *false*. 28 29 **--help** 30 Print usage statement 31 32 **-i**, **--interactive**=*true*|*false* 33 Keep STDIN open even if not attached. The default is *false*. 34 35 **-t**, **--tty**=*true*|*false* 36 Allocate a pseudo-TTY. The default is *false*. 37 38 The **-t** option is incompatible with a redirection of the docker client 39 standard input. 40 41 # HISTORY 42 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>