Open anton-erofeev opened 10 months ago
Despite having in my docker-compose.yml:
volumes:
- $PWD:$PWD
- $HOME/.docker/run/docker.sock:/var/run/docker.sock
I also tried:
- /var/run/docker.sock:/var/run/docker.sock
I struck with the same issue:
[Test worker] ERROR org.testcontainers.dockerclient.DockerClientProviderStrategy -- Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
UnixSocketClientProviderStrategy: failed with exception InvalidConfigurationException (Could not find unix domain socket). Root cause NoSuchFileException (/var/run/docker.sock)
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.
Module
Core
Testcontainers version
1.19.3
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
What happened?
I'm trying to run gradle java spring app with testcontainers in containerd container but I'm getting the following error:
This is because containerd does not support docker socket and there really is no file there. Could you tell me, is there any workaround for this? couldn't find the configuration setting for containerd in the documentation
Relevant log output
Additional Information
No response