--- title: docker exec tags: Docker --- # docker exec ### Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] > Run a command in a running container ### Options: | Options | Description | | -------- | -------- | | -d, --detach |Detached mode: run command in the background | --detach-keys string |Override the key sequence for detaching a container | -e, --env list |Set environment variables | -i, --interactive |Keep STDIN open even if not attached | --privileged |Give extended privileges to the command | -t, --tty |Allocate a pseudo-TTY | -u, --user string |Username or UID (format: <name|uid>[:<group|gid>]) | -w, --workdir string |Working directory inside the container
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up