[Docker] Connect CLI-Interpreter to network
The current docker container settings under "File | Settings | Languages & Frameworks | PHP" only support the "old style" docker container links (via --link). Its not possible to add the container to an existing network (via --network).
I found a work around here in the forum by using the "Network mode" field which works but only enables me to add the container to a single network.
Please add the option to add multiple networks in the Dialog since it's not possible to edit the run command for the docker container directly.
Best Regards,
Please sign in to leave a comment.
Is using Docker Compose not an option for you?
I want to run a CLI script in my container. Correct me if I am wrong - but I did not find a way to use the debugger when using docker-compose.
Please check the PhpStorm workshop project, debugging with a Docker Compose remote interpreter is included there:
https://github.com/JetBrains/phpstorm-workshop