docker exec -it mycontainer bash

Category: Docker

docker exec -it mycontainer bash

Open an interactive bash shell in a running container

Opens an interactive bash shell inside a running container — like SSH-ing into it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.