[
https://issues.apache.org/jira/browse/CAMEL-22720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claudio Miranda reassigned CAMEL-22720:
---------------------------------------
Assignee: Claudio Miranda
> Update testcontainer to 2.0.2
> -----------------------------
>
> Key: CAMEL-22720
> URL: https://issues.apache.org/jira/browse/CAMEL-22720
> Project: Camel
> Issue Type: Dependency upgrade
> Components: camel-test-infra
> Reporter: Claudio Miranda
> Assignee: Claudio Miranda
> Priority: Major
>
> docker updated the minimum docker client api version to 1.44 and
> testcontainer < 2.x throws this error
>
> {code:java}
> [ERROR] o.t.d.DockerClientProviderStrategy.lambda$getFirstValidStrategy$7 -
> Could not find a valid Docker environment. Please check configuration.
> Attempted configurations were:
> UnixSocketClientProviderStrategy: failed with exception
> BadRequestException (Status 400: {"message":"client version 1.32 is too old.
> Minimum supported API version is 1.44, please upgrade your client to a newer
> version"}
> )
> 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.
> {code}
> [There is a workaround to use the TC
> 1.21.3|https://github.com/testcontainers/testcontainers-java/issues/11210],
> to add a src/test/resources/docker-java.properties with "api.version=1.44".
> Or we can update TC to 2.0.x. I will run the test-infra to see how it works.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)