Open a shell in a running container
Starts an interactive shell inside the running container without restarting it.
docker exec -it container shEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/docker-container-exec.md), licensed under CC BY 4.0.