As we will be running many containers in production, it will be helpful if we can watch the real-time container events for monitoring and debugging purposes. Docker containers can report events such as create, destroy, die, export, kill, oom, pause, restart, start, stop, and unpause. In this recipe, we will see how to enable event logging and then use filters to select specific event types, images, and containers.
Getting real-time Docker events for containers
Getting ready...
Make sure that the Docker daemon is running on the host and that you can connect through the Docker client.