meteorhacks / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
439 stars 371 forks source link

Container exiting automatically when running meteor #75

Open DidiRaggio opened 8 years ago

DidiRaggio commented 8 years ago

Hi, I'm new to docker and I need to be able to run the ios and android emulators (I am using a PC). But so far I can't get my meteor image running. I've added the Dockerfile, I've run docker build -t yourname/app . withing the meteor app's folder (of course using the app's name). But when I run docker run -d \ -e ROOT_URL=http://yourapp.com \ -e MONGO_URL=mongodb://url \ -e MONGO_OPLOG_URL=mongodb://oplog_url \ -p 8080:80 \ yourname/app I get an id ( for example e2c86fe51e47da3bb02177def94f9c3d4b168b6d9b682734edbd8f24fed59313) but when I check the active containers with "docker ps", it is empty. when I use "docker ps -a" I get something like this: a7a74ac91e54 yourname/app "/bin/sh -c 'bash $ME" 26 minut es ago Exited (1) 18 minutes ago elegant_stallman

What am I doing wrong? How can I get it to work? I'd love some help or insight! Thanks

jshimko commented 8 years ago

Sounds like your app is crashing immediately after starting it. You can run that docker run command without the -d option to see where it's failing. The -d is for "detached". It just starts the container and detaches from it. Leaving the -d off will keep the running process in your terminal (which will let you see the error logged into your terminal)