Execute Command in Running Container
Run a command inside a running container. Most often an interactive shell.
Runs a command inside a running container. -it allocates a pseudo-TTY for interactive use. docker exec -it name bash opens an interactive shell inside the container.
When you need this: When you need to inspect files, run database commands, or debug inside a running container.
Variables
Command
5 views
0 copies
Related in this category
Log in to save
Free account. Save snippets into your own collections.