Functions are added to subscribe to the Docker event stream filtered for each Container.
Currently this is used to detect if a container was started or stoped externally.
It is possible that this strategy will be used to support other features. For example to add support for native Docker Healthchecks.
Great implementation, way more elegant. I realized after submitting my PR that I needed to find a way to make it event-driven instead of timeout-driven. Glad you figured it out.
Functions are added to subscribe to the Docker event stream filtered for each Container.
Currently this is used to detect if a container was started or stoped externally. It is possible that this strategy will be used to support other features. For example to add support for native Docker Healthchecks.