my docker build just keeps closing

i’m on OS X 10.9 and am using docker v0.7. i’m using the following docker file: i’ve vagrant up; vagrant ssh; sudo docker build . the Dockerfile.

when i’m building, everything is fine until almost the end. then i get this error:

  • Making two Docker containers work together
  • How can I give Docker containers access to a dnsmasq local DNS resolver on the host?
  • Kubernetes restarting pods
  • How to get a docker container to the state: dead for debugging?
  • error 28105#0: *1 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream
  • docker after run image 404. Tomcat - requested resource is not available
  • enter image description here

    anyone know what’s going on or how i can debug this?

    EDIT: got a new error:

    enter image description here

    probably something unrelated to Docker. i’ll open a new question for this.

  • How to run custom Docker file?
  • Cannot deploy docker containers from different hosts
  • docker and “volatile volumes” ala /tmp
  • Starting a docker container with a node.js app produces error; complains about PATH
  • Only one NGINX Server Context works at a time for NGINX sites-enabled
  • Why can't I pipe a file to “tar” from “curl” with a Docker image for Debian?
  • 2 Solutions collect form web for “my docker build just keeps closing”

    For debugging, you can just take an image from a successful intermediate step and start it with -i -t ... /bin/bash. Then try doing what you’re doing manually and see what happens.

    Note that in your Dockerfile, you want to download and clean up after unpacking the tar file in the same RUN command. Now, you clean up only at the end, which makes your diffs (und thus, the intermediate images) unnecessaryly big.

    got it. the process just kept getting closed because my VM didn’t have enough memory. bumped the memory from 384mb (default for virtual box i guess) to 512mb and everything was fine.

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