PyCharm can't connect to interpreter in docker

I use PyCharm 2016.1.4 on a Mac. I followed the instructions on this page, and I want to connect PyCharm to a Django project which runs in docker via docker-compose.

I added the configuration file and service name but when I press OK I get this error:

  • Access an application running in a Docker Container which is running inside an emulated CoreOS in Ubuntu
  • How to ignore uploads folder to stop content being removed on docker server when new build is created
  • Docker Compose and execute command on starting container
  • How can kubernetes dynamically expose my docker port?
  • How can I connect my docker to the internet?
  • docker-compose scale with nginx and without environment variable
  • Can you help me solve this problem?

  • Follow Symbolic link when creating dockerfile [duplicate]
  • Unable to upgrade pip in docker build
  • Docker containers: curl between containers not working
  • How to install Docker on offline Windows 7 machine
  • How to use VSTS Build/Release to continuously integrate/deploy Docker containers to Azure Service Fabric?
  • Translate docker run command to docker compose
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.