Skip to content

Commit 66e4be2

Browse files
authored
Fix StackOverflowError in DockerClientFactory#client (#5262)
1 parent cec4934 commit 66e4be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/testcontainers/DockerClientFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ public DockerClient client() {
187187

188188
final DockerClientProviderStrategy strategy = getOrInitializeStrategy();
189189

190-
log.info("Docker host IP address is {}", strategy.getDockerHostIpAddress());
191190
client = new DockerClientDelegate() {
192191

193192
@Getter
@@ -198,6 +197,7 @@ public void close() {
198197
throw new IllegalStateException("You should never close the global DockerClient!");
199198
}
200199
};
200+
log.info("Docker host IP address is {}", strategy.getDockerHostIpAddress());
201201

202202
Info dockerInfo = client.infoCmd().exec();
203203
Version version = client.versionCmd().exec();

0 commit comments

Comments
 (0)