Files
docker-cli/components/engine/docs/man/docker-exec.md
Vishnu Kannan 8b57e6f159 Adding docker exec support in CLI.
Fixed a bug in daemon that resulted in accessing of a closed pipe.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Upstream-commit: c786a8ee5e9db8f5f609cf8721bd1e1513fb0043
Component: engine
2014-09-16 19:24:25 +00:00

843 B

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

NAME

docker-exec - Run a command in an existing 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.