Files
website/v1.2/docs/admin/high-availability/monit-docker
T
2016-02-24 13:47:57 -08:00

9 lines
273 B
Plaintext

check process docker with pidfile /var/run/docker.pid
group docker
start program = "/etc/init.d/docker start"
stop program = "/etc/init.d/docker stop"
if does not exist then restart
if failed
unixsocket /var/run/docker.sock
protocol HTTP request "/version"
then restart