Best Answer · By JanBask DevOps Expert
Answered on Nov 22, 2019
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.