docker exec
Container ManagementExecute a command in a running container
Options & Flags
Available options for this command
-itInteractive terminal
-dDetached mode
Examples
Common usage examples
Open bash shell in container
docker exec -it mycontainer bashRun ls command in container
docker exec mycontainer ls /appNotes
- Container must be running
Related Commands
You might also find these useful