Skip to content

Commit fca585d

Browse files
Link to the docs on environment discovery failure (#5615)
Co-authored-by: Eddú Meléndez <[email protected]>
1 parent fd97b76 commit fca585d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,11 @@ public boolean test(DockerClientProviderStrategy dockerClientProviderStrategy) {
246246
.findFirst()
247247
.orElseThrow(() -> {
248248
log.error(
249-
"Could not find a valid Docker environment. Please check configuration. Attempted configurations were:"
249+
"Could not find a valid Docker environment. Please check configuration. Attempted configurations were:\n" +
250+
configurationFailures.stream().map(it -> "\t" + it).collect(Collectors.joining("\n")) +
251+
"As no valid configuration was found, execution cannot continue.\n" +
252+
"See https://www.testcontainers.org/on_failure.html for more details."
250253
);
251-
for (String failureMessage : configurationFailures) {
252-
log.error(" " + failureMessage);
253-
}
254-
log.error("As no valid configuration was found, execution cannot continue");
255254

256255
FAIL_FAST_ALWAYS.set(true);
257256
return new IllegalStateException(

docs/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/usage/database_containers.html /modules/databases/
1313
/usage/neo4j_container.html /modules/databases/neo4j/
1414
/compatibility.html /supported_docker_environment/
15+
/on_failure.html /supported_docker_environment/
1516

1617
# No great 1:1 mapping exists for the following, so redirect to somewhere where at least a sensible sidebar will be shown
1718

0 commit comments

Comments
 (0)