Docker Community Forums

Share and learn in the Docker community.

I need that a Container execute data in other shell


(Togatsu) #1

I have a container with a PHP Service. The PHP code tries to execute something but it fails because itś not a app from the containter. It is possible to run command from a container in another Shell? for example in the “parent” shell.

Thx


(Ralph Kincade) #2

“docker run “id of running container” /bin/bash”

try to replace the /bin/bash above with the shell you want to execute

what shell do you want to use?