How to run bash scripts on a docker image using "Run/debug configurations" window?

I successfully setup PHP on docker with PHPStorm.

I successfully starts my docker image using the "Run/debug" window.

I successfully launch composer script from this window, and the composer script is executed on the docker container that I chose and configured.

But I don't know how to configure bash scripts in this window AND how to execute them into a specific container. They only run outside my docker containers, in my hosting machine.

1 comment
Comment actions Permalink

In fact, Shell Script run configuration does not have a Docker support. However, you still can 'exec' scripts for specific containers in "Services" tool window:


Please sign in to leave a comment.