Configure remote docker PHP CLI interpreter does not work

My working environment is Windows 10. I am using PHPStorm 2018.1.5 build June 7 2018

Step 1: I have configured a VirtualBox virtual machine with Ubuntu 16.04. For this VM I have setup docker listening in port 2375

Step 2: I have configured my PHPStorm to connect to the Docker server from step 1. As far as I can see, it works fine (I can connect to it and explore its images from PHPStorm)

Step 3: I have tried to configure a remote PHP CLI from this Docker, but it fails

I can fill the form (you can see docker conf is ok becasue I can select the desired image from the docker server):

But when I click "ok" a new windows "Checking PHP Installation" appears and PHPStorm is frozen

When I do the same operation connection to docker-machine (from Docker toolbox) it works fine (the checking window takes a bit of time but it works)

3 comments

The IDE log needs to be checked for that, please try again and show is the logs (it'd be better if you upload it somewhere).

Also, please note that with this setup (Windows + Docker in a VM) you'll be struggling with volume mappings, as they don't go over Docker remote API (TCP port 2375 in your case), and you'll need to mount the project dir into the VM first.

1

Thanks for you quick answer.

I have tried to repeat the failing operation and I have checked the folder PhpStorm2018.1\system\log to check the logs. But I haven't found any log information update since I started the operation. Perhaps I am not looking into the right place or I have to activate something so log information is written.

Can you help me, please, how to find the logs you need?

Thanks again!!!

 

0

Hello,

system\log\idea.log is the place that we need to look at.

Please try enabling debug log collection as per https://intellij-support.jetbrains.com/hc/en-us/articles/207241115-How-to-Collecting-PhpStorm-WebStorm-debug-Logs, reproduce the issue and then check what's going on in the log file.

0

Please sign in to leave a comment.