Why does phpstorm try to start a new container when I ask it to use existing?

I am setting up phpstorm with a docker-compose.yml file, as a CLI intrepeter. I set it to use existing connection.. But for some reason it tries to run docker-compose up -d php.. This then fails (with no usable message). How can I get it to just sign into the container like it suggest that I can?

0
4 comments

Just to confirm, does it fail on CLI Interpreter validation only or scripts do not work either?

I am asking it as PhpStorm uses the "run" mode on validation even if "exec" mode is selected. However, it could be safely ignored if actual scripts do work fine.

0

Scripts are the same. I have a feeling that it cannot find the container and therefor tries to start it. If only I manually could specify the container name and the user to login with, I would be very happy :)

0

I have tried setting the container_name: in my docker-compose.yml, but phpstorm still tries to start the container..

0

Ok seems to a known issue.. 

https://youtrack.jetbrains.com/issue/WI-45749

https://youtrack.jetbrains.com/issue/WI-37986

I hope this will be fixed soon, as it makes it quite hard to work with docker.

0

Please sign in to leave a comment.