Accessing containers.
A running container can be accessed using docker exec command.
Docker exec -it
The above command will provide an interactive shell to execute commands within running container.
So, if you have a container id say “udweffnwejifniwefj” and want “bash” shell for interaction then use below command
Docker exec -it udweffnwejifniwefj /bin/bash
and above will give you a /bin/bash for container - udweffnwejifniwefj