docker-exec man page

docker-exec ā€” Run a command in a running container

Synopsis

docker exec [Options] CONTAINER COMMAND [ARG...]

Description

Alias for docker container exec.

Options

-d, --detach[=false]

Detached mode: run command in the background

--detach-keys=""

Override the key sequence for detaching a container

-e, --env=

Set environment variables

-h, --help[=false]

help for exec

-i, --interactive[=false]

Keep STDIN open even if not attached

--privileged[=false]

Give extended privileges to the command

-t, --tty[=false]

Allocate a pseudo-TTY

-u, --user=""

Username or UID (format: <name|uid>[:<group|gid>])

-w, --workdir=""

Working directory inside the container

See Also

docker(1)

Referenced By

docker(1).

Aug 2018 Docker Community