0 votes
in Docker by
Suppose you have 3 containers running and out of these, you wish to access one of them. How do you access a running container?

1 Answer

0 votes
by

The following command lets us access a running container:

$ docker exec -it <container id> bash

The exec command lets you get inside a container and work with it.

...