How to configue Pydev test runner to use Docker

I am developing a Django app or two using pydev as my IDE. I like it a lot 🙂 However, I recently got really excited about Docker and am using Docker and Fig to serve my application now. My problem is that I would like to run my tests in this build environment- seems like this is kinda the point after all!

I know how to actually do it.

  • How to run Rails migrations and seeding in Amazon Elastic Beanstalk single container Docker environment
  • Access host filesystem in the docker compose command
  • Can a docker instance be connected to just one specific network interface?
  • access grunt serve inside docker
  • Can a docker build use the url of a git branch?
  • How to create a shared volume between docker host and container in Mac
  • fig run web python3 /code/ test

    would run the tests. If I didn’t want to use the Django runner, I could run

    fig run web python3 /code/myapp/

    Either way though, I cannot figure out how to issue that command from the IDE. All of the run configurations point to the configured python.exe … does anyone know if there is a way to replace that with a fully customized command?

  • Having error pushing docker container on Bluemix
  • Grep/Awk: Find status from table column
  • Docker application deployment
  • Where do you create application logs of app running in Docker?
  • Lost data docker gitlab on local osx
  • docker: command not found with Jenkins build and publish plugin on Mac
  • One Solution collect form web for “How to configue Pydev test runner to use Docker”

    Well, the PyDev launch configuration is really targeted towards running Python, but there are alternatives to running it through other ways:

    1. Create an external tool run (run > external tools > external tools configuration): You should be able to run anything you want from there… the downside is that this isn’t really integrated into PyDev, so, if you have stack-traces they won’t be clickable (and you won’t be able to debug either).

    2. Create a launcher script which in turn uses subprocess to launch the command you want… if you redirect things tracebacks should be clickable. The downside is that you won’t be able to create a debug session either — but you can still use the remote debugging in this case (

    3. Improve PyDev to do that better… (i.e.: get the code: and add docker support to a project through fig — it should be something close to org.python.pydev.django which has special integration for running in django — with some tweaks to the start command line, even starting in debug mode directly can work here)… if you decide to go that route, you can create a feature request at and ask code-related stuff and I’ll help 🙂

    4. Possibly you can create a custom executable which acts like Python but in reality just forwards things to other places (i.e.: to fig run) — I haven’t actually tested this, but in theory it should work (in the past there was work to support dummy ‘python’ runners such as that — i.e.: for supporting — so, it should work — but you still have to create this launcher script for your use case to pass things to fig run). If the work is done properly, the debugger could work here too.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.