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?
Please sign in to leave a comment.
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.
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 :)
I have tried setting the container_name: in my docker-compose.yml, but phpstorm still tries to start the container..
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.