Opening a shell in a Docker Container

1 min read

OK Docker, Make Shell In Container, PLEASE?

I regularly forget how to create a shell inside of an active Docker container, so I’m leaving it here:

bash
docker container ls

or just

bash
docker ps

Grab the CONTAINER ID and…

bash
docker exec -it <container_id> /bin/bash
Check out the Mega Star! Be a Mega Star! worthy support and email subscriptions options.