Query the events endpoint of the Docker daemon.
Publish messages inside the asyncio queue.
timeout – The timeout for the events stream (infinite by default).
Subscribes to the Docker events channel. Use the keyword argument create_task=False to prevent automatically spawning the background tasks that listen to the events.
This function returns a ChannelSubscriber object.
Python Docker API client based on asyncio and aiohttp
DockerEvents