Why is .withReuse(true)
not the default?
#5023
-
I wonder why there are 2 things you need to do to get container re-use: set the property in your home directory + add |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @wimdeblauwe, happy to hear that you seem to like Reusable containers is still an alpha feature with only experimental support, so we currently want to make the opt-in very explicit. In addition, Still thanks for your comment, we will consider the different UX aspects once we move forward in making this feature GA 👍 |
Beta Was this translation helpful? Give feedback.
-
Not every container is reusable. For example, if you set an environment variable to something random, it will always start a new container.
|
Beta Was this translation helpful? Give feedback.
Hey @wimdeblauwe, happy to hear that you seem to like
withReuse
so much, you could imagine it being the default 🙂Reusable containers is still an alpha feature with only experimental support, so we currently want to make the opt-in very explicit. In addition,
withReuse
indicates if a container can be reused in the context of its creation (or its test), while the flag in.testcontainers.properties
indicates that the runtime environment would benefit from reuse (e.g. we generally don't want CI to use reuse).Still thanks for your comment, we will consider the different UX aspects once we move forward in making this feature GA 👍