DevOps · Command
docker exec
Runs a new command in a running Docker container. Use options to control input, terminals, environment variables, users, privileges, and the working directory.
Last updated
Syntax
docker container exec [OPTIONS] CONTAINER COMMAND [ARG...]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
docker exec--detach--env--env-file--interactive--privileged--tty--user