Running commands in container.
to run commands inside a running container use docker exec command
Docker exec -it
So, if you want to get access on running container with name say Apache_web and want to get bash shell then below command need to be executed -
Docker exec -it Apache_web /bin/bash
Running docker exec on paused or stopped container will give ERROR.