I
I
Ilya T.2015-04-18 12:42:42
linux
Ilya T., 2015-04-18 12:42:42

What can be used as a watchdog for docker?

We have a system running several docker containers, some of which have the ability to crash unexpectedly (now it doesn't matter why). The fallen is easily picked up with the docker start containername command, but someone is needed to enter this command.
Task: to fasten something to the server that will quickly lift falling containers.
Solutions that lie on the surface:
- Self-written script in the crown - in fact a crutch
- Monit - because. it is required to determine which container has fallen, you will need to fuss with creating and deleting pid files. As a result, we get a mega-crutch.
Perhaps there are some more direct options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Kileev, 2015-04-18
@Insaned

docs.docker.com/articles/host_integration
I am currently using upstart. If the container crashes, then it restarts it. Haven't tested with systemd.

M
Matvey Kukuy, 2015-04-18
@Matvey-Kuk

Are scripts falling inside and the container is frozen? Then you need to set up a watchdog inside the container using standard methods - the same monit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question