mesos - Docker when deployed on marathon is failing continously -


i new these technologies , trying figure things out. so, followed basic tutorials provided mesosphere , able create cluster locally (two vms) want deploy nodejs application created docker image contains nodejs express framework , script start server. can find docker image @ docker registry pujariamol/nodejs-express , has script @ root level called runscript.sh.

the json tried deploying follows:

{     "id": "app4",      "container": {         "type":"docker",       "docker": {         "image": "pujariamol/nodejs-express"       }     },     "cmd":"echo hello > /tmp/out.txt",     "cpus": 0.25,     "mem": 512.0,     "instances": 1 } 

i thought pull docker container , start it. also, wanted run runscript.sh trying './runscript.sh' in cmd didn't work tried writing text in out.txt testing purpose nothing seems work. moment application deployed mesos shows failed status app. using chrome extension postman deploying on marathon. have no idea going wrong. please me getting application deployed on marathon , let me know if need more information.

thanks in advance.

i don't know mesosphere @ all, if trying run in container:

echo hello > /tmp/out.txt 

...then container going very, short lived. docker container runs long initial command, , echo going exit immediately.

are able start container using docker run itself, without involving mesosphere? have looked @ container logs see if there useful errors? can use docker logs this, , it's possible mesosphere provides interface information.

if trying run ./runscript.sh, there script named runscript.sh in current directory when container starts? have located in root directory (/) work. it's better provide full path initial command (e.g., /runscript.sh, or /usr/local/something/runscript.sh).


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -