From cc1e289934d8a2c57063d67c7a898138209829b4 Mon Sep 17 00:00:00 2001 From: Leo Huang Date: Fri, 15 Sep 2023 20:51:28 +1000 Subject: [PATCH] Add hints about how to allow retries after a previous cached failure to find a Docker environment --- .../dockerclient/DockerClientProviderStrategy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java b/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java index 557e8ba6cdf..8542cf281ac 100644 --- a/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java +++ b/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java @@ -230,7 +230,8 @@ protected boolean test() { public static DockerClientProviderStrategy getFirstValidStrategy(List strategies) { if (FAIL_FAST_ALWAYS.get()) { throw new IllegalStateException( - "Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration" + "Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration.\n" + + "To allow retries again, you may have to stop any long-running build daemons (eg, `gradle --stop`, `mvnd --stop`)." ); }