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
Seeing something similar in a Spring Boot project when upgrading to Spring Boot 3.2.1:
java.lang.RuntimeException: org.apache.hc.client5.http.HttpHostConnectException: Connect to unix://localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused
at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:195)
at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:9)
at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:228)
at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:202)
at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:74)
at com.github.dockerjava.core.exec.ListContainersCmdExec.execute(ListContainersCmdExec.java:44)
at com.github.dockerjava.core.exec.ListContainersCmdExec.execute(ListContainersCmdExec.java:15)
at com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21)
at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:33)
Same issue here. First reported on 21 Dec 2023. Docker Java is configured to use UNIX socket at unix://var/run/docker.sock, but since a while we started getting the error
org.apache.hc.client5.http.HttpHostConnectException: Connect to unix://localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused.
as if the UNIX socket docker host setting is ignored.
Update: downgrading to SpringBoot 3.1.6 has fixed the issues
As mentioned in spring-projects/spring-boot#38953 one of the reasons could be the bump of org.apache.httpcomponents.client5 in the recent SB release. As docker-java uses Apache http client library, the more recent v5.2.3 could be incompatible with the docker-java code.
Would it be possible to bump org.apache.httpcomponents.client5 to 5.2.3 and test it?
[request processing failed;nested exception is java.lang.RuntimeException:java.io.IOException: docker-java com.sun.jna.LasteErrorException:[2] No such file or directory ] with root cause
We just landed here because we upgraded spring boot plugin for Gradle to 3.2.1 and the world came crashing down in our build pipeline as a result of the new apache code pulled in.
Activity
SeBBBe commentedon Jan 2, 2024
Seeing something similar in a Spring Boot project when upgrading to Spring Boot 3.2.1:
azuenko commentedon Jan 2, 2024
Same issue here. First reported on 21 Dec 2023. Docker Java is configured to use UNIX socket at
unix://var/run/docker.sock, but since a while we started getting the erroras if the UNIX socket docker host setting is ignored.
Update: downgrading to SpringBoot 3.1.6 has fixed the issues
azuenko commentedon Jan 2, 2024
As mentioned in spring-projects/spring-boot#38953 one of the reasons could be the bump of
org.apache.httpcomponents.client5in the recent SB release. Asdocker-javauses Apache http client library, the more recent v5.2.3 could be incompatible with the docker-java code.Would it be possible to bump
org.apache.httpcomponents.client5to5.2.3and test it?347866243 commentedon Jan 5, 2024
[request processing failed;nested exception is java.lang.RuntimeException:java.io.IOException: docker-java com.sun.jna.LasteErrorException:[2] No such file or directory ] with root cause
Sineaggi commentedon Jan 11, 2024
I've opened a PR with a fix for this here #2294
izian commentedon Jan 15, 2024
We just landed here because we upgraded spring boot plugin for Gradle to 3.2.1 and the world came crashing down in our build pipeline as a result of the new apache code pulled in.
Remove exclusion and fix httpclient5 compatibility (docker-java#2294)