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:

  • docker/fig: port forwarding to guest machine does not work on MacOS
  • How should I launch ipython notebook from Docker once a session has been launched?
  • Changed name of Docker container, everything broke
  • Exclude folders in .dockerignore
  • Automount / NFS Problems with Rancher Network
  • MobileFirst Runtime “Disappearing” in Bluemix Container
  • Can you help me solve this problem?

  • Failed to start docker.service: Unit docker.service is masked
  • Permission Denied for SO_DEBUG socket option inside docker
  • Can't resolve docker related sbt tags
  • Identical dockerfiles giving different behaviours
  • Creating HazelCast cluster running on multiple docker containers
  • How do I copy the files from one directory to another using a dockerfile?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.