Skip to content

Commit

Permalink
Add more clear warning message instructing users how to enable reusab…
Browse files Browse the repository at this point in the history
…le containers
  • Loading branch information
aguibert committed Mar 11, 2020
1 parent 16fda42 commit 8d0fb3b
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -78,6 +78,7 @@
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
Expand Down Expand Up @@ -379,7 +380,9 @@ private void tryStart(Instant startedAt) {
}
reusable = true;
} else {
logger().info("Reuse was requested but the environment does not support the reuse of containers");
logger().warn("Reuse was requested but the environment does not support the reuse of containers");
logger().warn("To enable reuse of containers, you must set 'testcontainers.reuse.enable=true' in a file located at {}",
Paths.get(System.getProperty("user.home"), ".testcontainers.properties"));
reusable = false;
}
} else {
Expand Down

0 comments on commit 8d0fb3b

Please sign in to comment.