Is there a way to bind an already running container to a StartedTestContainer
?
#296
-
Let's suppose that I am have run some container manually, without using testcontainers. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @redjolr, currently not. Could I ask what's the use case here? I'm specifically wondering why you couldn't create the container with testcontainers in the first place, that way you'd get automatic resource cleanup and other such features. |
Beta Was this translation helpful? Give feedback.
-
This functionality is supported by providing |
Beta Was this translation helpful? Give feedback.
This functionality is supported by providing
withReuse()
when creating a container.