Starting Docker containers

Photo by Ian Taylor on Unsplash

Starting Docker containers

Start bash and inspect the state of a running container.

Start a shell in a running Docker container.

$ docker exec -it <container-id> /bin/bash

Start the container and run the shell

$  docker run --rm -ti <image>:<tag>