1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/man/docker-exec.md
Jessica Frazelle fc75ade4f8 Add docker-exec to main manpage
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
2014-09-17 11:46:49 -07:00

841 B

% DOCKER(1) Docker User Manuals % Docker Community % SEPT 2014

NAME

docker-exec - Run a command in an active container

SYNOPSIS

docker exec [-d|--detach[=false]] [-i|--interactive[=false]] [-t|--tty[=false]] CONTAINER COMMAND [ARG...]

DESCRIPTION

Run a process in an existing container. The existing CONTAINER needs to be active.

Options

-d, --detach=true|false Detached mode. This runs the new process in the background.

-i, --interactive=true|false When set to true, keep STDIN open even if not attached. The default is false.

-t, --tty=true|false When set to true Docker can allocate a pseudo-tty and attach to the standard input of the process. This can be used, for example, to run a throwaway interactive shell. The default value is false.