
Kevin L. answered 12/16/19
Linux Admin and developer
Docker allows you to run commands within a container using the "docker exec" command. Therefore you can run a "docker exec -it My_Container_or_ID_Hash /bin/bash" command to get into the Bash command line within the container. From there, you will be able to utilize the tools within the container to explore all you want.
This only works with containers that have a continuous run - like a web server or DB server. If the container runs a command then exits (stops), you won't be able to use that command. Think of these as a container that runs a script or command that would typically put you back at the command prompt.
Just think of a container as a virtual machine with the bare minimum needed to run the code that the container was built for.