Container Discovery API

Hi,

I’m trying to listen for new containers being created and do something in response. I could create a timer that fetches the containers every x seconds but that wouldn’t be as real-time as it could be. I hope’d that there was an API that could be used to accomplish this.