Replies: 1 comment 4 replies
-
I am sorry, but we do not support this yet. We do not receive notifications from the Docker API when a container terminates. IIRC, Docker.DotNet does offer support for monitoring events. Perhaps we could leverage this to detect when a container terminates and then forward this information through an event. WDYT? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a question regarding the IContainer.State property. I'd like to be notified when my container dies. I would expect the IContainer.State property to hold real-time state information, but it does not seem to do so.
Then I tried to use the IContainer.Stopped event, but that also does not seem to update.
What is the best way to be notified when a container dies?
Here is my test code. It starts a container that dies after 10 seconds.
Here are the logs. Note only Started has been logged, and not Stopped.
Beta Was this translation helpful? Give feedback.
All reactions