Unable to use a docker-container as the php interpreter in PhpStorm on Windows

I use docker-tools to run docker on Windows 7. I have the docker-machine setup and the commands I run from the command line work fine.

I’m now trying to integrate this in PhpStorm. Here are the 2 things I tried:

  • Tag not found in repository docker.io/minio
  • Run multiple docker compose
  • Pods doesn't run on another node after its node down
  • gcloud preview app setup-managed-vms gives errors - 500 Server Error: Internal Server Error
  • rename enviromental variables from linking dockers
  • How to create a docker container with more than 50G storage
  • 1. As a local interpreter

    I made php.bat with the following content

    @echo off
    SET DOCKER_HOST=tcp://
    SET DOCKER_CERT_PATH=C:\Users\phillaf\.docker\machine\machines\default
    docker run -it --rm -v /c/Users/phillaf/app:/app -w /app php php %*

    I can use php.bat to run php scripts successfully from the windows command line. In PhpStorm I tried adding php.bat as a local PHP interpreter, but it’s not recognized as an interpreter.

    2. As a remote interpreter

    I can connect successfully to docker-machine with putty using docker@, password tcuser. However PhpStorm seems to be unable to connect with the same infos. I tried setting it up as a remote interpreter.

    Under Settings > Languages & Frameworks > PHP > Interpreters > Remote I add the SSH info and then click browse. I get the error “failed to send channel request”.

  • Setting up the network for Kubernetes
  • composer install failing for unknown reason in travis-ci
  • Unable to access hosted app from docker in Windows
  • Deploy Cloudsuite benchmark using Docker swarm mode
  • How to change the dns of a running docker container
  • Docker and Eureka with Spring Boot failing to register clients
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.