File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,13 @@ def start(self) -> Self:
108
108
hash_ = hashlib .sha256 (bytes (str (args ), encoding = "utf-8" )).hexdigest ()
109
109
110
110
# TODO: check also if ryuk is disabled
111
- if self ._reuse and not c .tc_properties_testcontainers_reuse_enable :
111
+ if self ._reuse and ( not c .tc_properties_testcontainers_reuse_enable or not c . ryuk_disabled ) :
112
112
logging .warning (
113
113
"Reuse was requested (`with_reuse`) but the environment does not "
114
114
+ "support the reuse of containers. To enable container reuse, add "
115
- + "the property 'testcontainers.reuse.enable=true' to a file at "
116
- + "~/.testcontainers.properties (you may need to create it)."
115
+ + "the 'testcontainers.reuse.enable=true' to "
116
+ + "'~/.testcontainers.properties' and disable ryuk by setting the "
117
+ + "environment variable 'TESTCONTAINERS_RYUK_DISABLED=true'"
117
118
)
118
119
119
120
if self ._reuse and c .tc_properties_testcontainers_reuse_enable :
You can’t perform that action at this time.
0 commit comments