github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/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 [**-i**|**--interactive**[=*false*]] 11 [**-t**|**--tty**[=*false*]] 12 CONTAINER COMMAND [ARG...] 13 14 # DESCRIPTION 15 16 Run a process in a running container. 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 24 # OPTIONS 25 **-d**, **--detach**=*true*|*false* 26 Detached mode: run command in the background. The default is *false*. 27 28 **-i**, **--interactive**=*true*|*false* 29 Keep STDIN open even if not attached. The default is *false*. 30 31 **-t**, **--tty**=*true*|*false* 32 Allocate a pseudo-TTY. The default is *false*. 33 34 The **-t** option is incompatible with a redirection of the docker client 35 standard input. 36 37 # HISTORY 38 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>