When trying to add Flywheel as a remote CLI Interpreter in PhpStorm, it gives me the choice between custom:1.2
and flywheel:1.0
for image names. Selecting the flywheel image gives me access to PHP 5.6, but choosing the custom one throws an error instead of giving me the PHP version I’ve selected in Local for my site.
PhpStorm appears to run docker exec
to query the container for PHP, which throws an error. When I run it in a terminal, I get this, which matches the runtime error PhpStorm throws.
$ docker run custom:1.2 php -v
container_linux.go:247: starting container process caused "exec: \"php\": executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"php\": executable file not found in $PATH".
ERRO[0000] error getting events from daemon: context canceled
If I run docker exec image_name php -v
with the name of a running image, it shows me the PHP version I expect to see from the container.
Running docker run flywheel:1.0 php -v
returns PHP 5.6.20 no matter what I’ve picked for my site.