Running commands in container.

824    Asked by JanetteWhite in Devops , Asked on Nov 22, 2019
Answered by Janette White

 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.

Your Answer


Parent Categories