CmdID

CmdID / docker / docker container

docker container exec

Execute a command in a running container Docker CLI reference

9 options Also docker exec Its page in the Docker CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

9 in the Docker CLI reference
--detach, -dDetached mode: run command in the background
--detach-keysOverride the key sequence for detaching a container
--env, -eSet environment variables
--env-fileRead in a file of environment variables
--interactive, -iKeep STDIN open even if not attached
--privilegedGive extended privileges to the command
--tty, -tAllocate a pseudo-TTY
--user, -uUsername or UID (format: <name\
--workdir, -wWorking directory inside the container