Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 775 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 775 Bytes

docker-supervise

Monitors containers via name and automatically restarts those that die.

Building:

It is probably a good idea to use go get -u to retrieve this package, as it also downloads all the necessary dependencies to build it.

Usage:

DOCKER_HOST: path to docker socket/port/etc

HTTP API:

/: list of containers being monitored (JSON array of container names) GET: list of containers being monitored (JSON array of container names) POST: takes 'id':'[id or name]', and begins to monitor it. /{id or name}: GET: get configuration of container [404 if not monitored] DELETE: do not monitor this container anymore

OS X Users:

I'll leave this here.