yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

Why this image not starting automatically? #4

Closed egorvas closed 8 years ago

egorvas commented 8 years ago

Hi, Im trying to start your docker image, but its not started. Thats example of my commands:

docker run -d -p 27017:27017 --name mongo mongo docker run -d -e APP_ID=myappid -e MASTER_KEY=myapppassword -p 1337:1337 --link mongo yongjhih/parse-server

But after that server is not started. And in docker ps -a I see something like that:

6848bbf60604 yongjhih/parse-server "node" 13 seconds ago Exited (0) 12 seconds ago berserk_kowalevski Where is my error?

yongjhih commented 8 years ago

Try to pull yongjhih/parse-server image by the following command before docker run -d:

docker pull yongjhih/parse-server

I could not reproduce:

$ docker ps
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                                            NAMES
4d0c407721cc        yongjhih/parse-server          "npm start"              2 minutes ago       Up 2 minutes        0.0.0.0:1337->1337/tcp                           furious_bardeen
bba3f31fb0af        mongo                          "/entrypoint.sh mongo"   2 minutes ago       Up 2 minutes        0.0.0.0:27017->27017/tcp                         mongo

Here are steps to reproduce:

  1. docker run -d -p 27017:27017 --name mongo mongo
  2. docker run -d -e APP_ID=myappid -e MASTER_KEY=myapppassword -p 1337:1337 --link mongo yongjhih/parse-server
egorvas commented 8 years ago

Yeah, thank you, pull is helped.