-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Could not find a valid Docker environment. Please check configuration." from testcontainers-java on 1.16.1+ and JVM 17th #5030
Comments
Try to create new default docker machine by command: If problem still persist, can you provide more information about your Docker configuration? |
Hi @ashirman, @AndrejKapusta |
@ashirman After looking at the logs in more detail, it might be the case that you run into a real timeout, since the default ping timeout was reduced in #4386. Can you please try to configure a higher timeout, e.g. 30s? This is the old default.
|
well, thanks for suggestion. I tried the following in
so using
build has been successfully passed. |
Thanks for letting us know and happy that it works for you like this. I am not sure why your Docker daemon takes a long time to respond, but I guess it could be because of the many stopped containers on your machine:
Feel free to try out with a smaller timeout after having your system cleaned up, or keep the timeout like this. |
Leaving this log for searchability as docker-machine has been deprecated in MacOs and the initial stacktrace in this issue will probably not match. Anyway @kiview suggestions did the trick, thanks. ` Could not find a valid Docker environment. Please see logs and check configuration |
it was not enough for Windows. The default value was decreased during upgrade in TestContainers. see testcontainers/testcontainers-java#5030 (comment) part of KaotoIO#644 Signed-off-by: Aurélien Pupier <apupier@redhat.com>
it was not enough for Windows. The default value was decreased during upgrade in TestContainers. see testcontainers/testcontainers-java#5030 (comment) part of KaotoIO#644 Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Having "Could not find a valid Docker environment. " error what causes test flakiness.
Environment:
Engine: 20.10.12
on Mac OS12.1
. issue is reproduced on Github Actions as well.17.0.2 (x86_64) "Homebrew" - "OpenJDK 17.0.2"
,17.0.2 (x86_64) "Oracle Corporation" - "OpenJDK 17.0.2"
,17.0.2 (x86_64) "Eclipse Temurin" - "Eclipse Temurin 17"
but not sure if exact docker image does matter.
Workaround:
1.16.0
. Looks like this version is more stable on JVM 17.We have seen this issue on JVM 11 as well but on JVM 17 it becomes even more painful. Assume issue can be related to changes in
1.16.1
where a sort of race-conditions are possible so looks like fix #4597 does not solve issue completely.debug logs are below
please let me know if any help such as additional logs are required. Thanks!
The text was updated successfully, but these errors were encountered: