making sure a given docker container is running -
i'm using docker on quite lot of servers right of containers use crash due heavy load. thinking on adding cron checks every minute of container running or not didn't find satisfactory method on doing that.
i'm starting container cidfile saves id of running container. if container crashes cidfile stays there id inside , wondering how guys make sure container running or not , respawn in case went down. should parse output of docker ps -a
or there more elegant solution?
since docker version 1.2.0 there's new switch run
command called --restart
should make external tools or monitoring obsolete. since documentation isn't explaining feature @ time of writing, read announcing blog post details.
Comments
Post a Comment