1
0
mirror of https://github.com/docker/cli.git synced 2025-04-24 16:07:01 +03:00
David Karlsson dc22572e3e chore: regenerate docs
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-07-04 10:30:56 +02:00

1.3 KiB

docker exec

Execute a command in a running container

Aliases

docker container exec, docker exec

Options

Name Type Default Description
-d, --detach bool Detached mode: run command in the background
--detach-keys string Override the key sequence for detaching a container
-e, --env list Set environment variables
--env-file list Read in a file of environment variables
-i, --interactive bool Keep STDIN open even if not attached
--privileged bool Give extended privileges to the command
-t, --tty bool Allocate a pseudo-TTY
-u, --user string Username or UID (format: <name|uid>[:<group|gid>])
-w, --workdir string Working directory inside the container