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: https://gist.github.com/jonathanong/7366257. 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:

  • ElasticSearch on Elastic Beanstalk
  • Docker not showing default page
  • Performing a npm install via Docker on a windows host
  • Error when creating container with golang docker engine
  • Avoid repeated program installation/configuration in container
  • Unable to start container from jenkins
  • 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.

  • Craft CMS Manager Craftman - No such file or directory: '//docker-compose.yml'
  • “device or resource busy” error when trying to push image with docker
  • Running OpenSSH in an Alpine Docker Container
  • Managing and Utilizing Multiple Docker Containers (Microservices) in a Single Server
  • Docker: Could not get container for XXX
  • Error :Could not connect to Redis at redis:6379: Name or service not known
  • 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.