ItsEcholot / ContainerNursery

Puts Docker Containers to sleep and wakes them back up when they're needed
MIT License
94 stars 6 forks source link

Feature/container events #9

Closed ItsEcholot closed 2 years ago

ItsEcholot commented 2 years ago

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.

everythingguy commented 2 years ago

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.