How do i check if a container is running/stopped? #541
-
Sometimes is might be usefull to access to state of the container to check if it is running. For example, if a container has already been stopped and Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @darwin403 It is a good question. The lifecycle of the container is controlled through its types, i.e GenericContainer -> StartedGenericContainer -> StoppedGenericContainer. From your example it seems you don't really use these types, or at least based on the way the test suites are structured, you don't care about them. Correct me if I'm wrong but what would help you is making I am happy to implement this as I think generally it is prefereable. LMK if I've misunderstood something/if that works for you 🙂 |
Beta Was this translation helpful? Give feedback.
This has been implemented in #544 and released in v9.6.0.