Running Disco in a Docker container

I need to run a run a Python script in a Docker container (I currently have execution of “” as my ENTRYPOINT command) that will utilize Disco (which of course needs to be running in that container). The problem is I cannot seem to get Disco running either with CMD or RUN in the Dockerfile, or from within the Python script itself (using the subprocess module).

If, however, I create an otherwise identical image with no ENTRYPOINT command, run it with docker run -i -t disco_test /bin/bash and then open a Python shell, I can successfully get Disco running using the subprocess module (simply using call(["disco", "start"]) works). Upon exiting the Python shell I can indeed verify that Disco is still running properly (disco status reports “Master 0cfddb8fb0e4:8989 running”). When I attempt to start Disco in the same way (using call(["disco", "start"])) from within “”, which I execute as the ENTRYPOINT command, it doesn’t work! It will print “Master 0cfddb8fb0e4:8989 started”, however checking disco status afterwards ALWAYS shows “Master 0cfddb8fb0e4:8989 stopped”.

  • Replace Docker container with external service
  • Is it possible/sane to develop within a container Docker
  • Issues in ansible while working with docker
  • Linux “Perf” tool cannot run inside docker images?
  • Docker. No such file or directory
  • how to get logs in docker alipne haprox:1.5 logging
  • Is there something about how the ENTRYPOINT command is run that is preventing me from being able to get Disco running from within the corresponding Python script? Running “” on my machine (not in a Docker container) does indeed get Disco up and running successfully.

    Any insights or suggestions would be greatly appreciated!

  • Rancher template - Hadoop Illegal character in host-name
  • Dokku push resulting in broken pipe when deploying to Digital Ocean
  • How to make container wait for other container in Docker Compose
  • Docker : How to export/save classifying results outside a Docker (tensorflow) box?
  • Docker keep up container which app on ubuntu
  • How to run local aci images with kubernetes?
  • One Solution collect form web for “Running Disco in a Docker container”

    I would guess that its running daemonized and exits immediately stopping the container. You could try these containers dockerized disco . It uses supervisor to run disco.

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