title: Elastic Beanstalk with Docker deployment failure
body: <p>I'm trying to deploy my application with docker and elastic beanstalk. My Dockerrun.aws.json file looks like</p>
  
  <pre><code>{
    "AWSEBDockerrunVersion": "1",
    "Image": {
      "Name": "jvans/maven_weekly",
      "Update": "true"
    },
    "Ports": [
      {
      "ContainerPort": "5000"
    }],
    "Volumes": [
      {
        "HostDirectory": "/Users/jamesvanneman/Code/maven_weekly/maven_weekly",
        "ContainerDirectory": "/maven_weekly"
    }
    ],
    "Logging": "/var/log/nginx"
  }
  </code></pre>
  
  <p>I created this application with <code>eb create</code> and when I run <code>eb deploy</code> I get</p>
  
  <pre><code>Docker container quit unexpectedly after launch: Docker container quit 
  
  unexpectedly on Mon Sep 21 01:15:12 UTC 2015:. Check snapshot logs for details. 
  Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
  </code></pre>
  
  <p>In <code>var/log/eb-activity.log</code> I see the following errors: </p>
  
  <pre><code>  Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Sep 21 01:08:52 UTC 2015:. Check snapshot logs for details. (ElasticBeanstalk::ExternalInvocationError)
  caused by: 83ea9b7f9a069eeb8351fef7aaedb8374f7dfe300a5e0aaeba0fe17600583175
  [2015-09-21T01:08:52.205Z] INFO  [2246]  - [Application deployment/StartupStage1/AppDeployEnactHook/00run.sh] : Activity failed.
  </code></pre>
  
  <p>So it seems like there's a problem with a startup script. If i ssh into the container and try to run it manually I don't really get any extra help from error messages.</p>
  
  <p><code>eb ssh</code></p>
  
  <p><code>sudo /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh</code></p>
  
  <pre><code>Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Sep 21 01:34:52 UTC 2015:. Check snapshot logs for details.
  Msg: Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Sep 21 01:34:52 UTC 2015:. Check snapshot logs for details.
  </code></pre>
  
  <p>Are snapshot logs something different than what's in <code>var/log/eb-activity.log</code>? Any Idea what is going on/how I can debug this further?</p>