You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client: Docker Engine - Community
Version: 27.1.0
API version: 1.46
Go version: go1.21.12
Git commit: 6312585
Built: Fri Jul 19 17:45:03 2024
OS/Arch: linux/amd64
Context: default
What happened?
Attempting to use TestContainers and JDk 23+ results in:
09:56:16,255 (main) ERROR DockerClientProviderStrategy:269 - Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
DockerDesktopClientProviderStrategy: failed with exception NullPointerException (Cannot invoke "java.nio.file.Path.toString()" because the return value of "org.testcontainers.dockerclient.DockerDesktopClientProviderStrategy.getSocketPath()" is null)As no valid configuration was found, execution cannot continue.
See https://java.testcontainers.org/on_failure.html for more details.
This is caused by the Awaitility upgrade in this commit c177fb2 which is causing
java.lang.NumberFormatException: For input string: "23-ea"
in this block of code checking the socket strategy:
eddumelendez
changed the title
[Bug]: Cannot run build using Test Containers on JDK 23+
[Bug]: Cannot run build using Testcontainers on JDK 23+
Jul 24, 2024
Module
Core
Testcontainers version
1.20.0
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
What happened?
Attempting to use TestContainers and JDk 23+ results in:
This is caused by the Awaitility upgrade in this commit c177fb2 which is causing
in this block of code checking the socket strategy:
testcontainers-java/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java
Lines 209 to 218 in 5bd94ab
on JDK 23+
See:
awaitility/awaitility#277
awaitility/awaitility#275
for the related issue on the Awaitility side.
Relevant log output
No response
Additional Information
Maybe it is worth downgrading to the 4.2.0 version for the time those issues are not addressed on the Awaitility side ?
The text was updated successfully, but these errors were encountered: