-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the bug
Since upgrading Quarkus recently I’ve started getting warnings about dev services starting (because I don’t have a Docker environment installed) when running in dev mode:
2025-08-27 09:40:59,615 INFO [org.tes.DockerClientFactory] (build-11) Testcontainers version: 1.21.3
2025-08-27 09:40:59,709 INFO [org.tes.doc.DockerClientProviderStrategy] (build-11) Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
2025-08-27 09:40:59,718 INFO [org.tes.doc.DockerMachineClientProviderStrategy] (build-11) docker-machine executable was not found on PATH ([/opt/homebrew/opt/postgresql@16/bin, /opt/homebrew/bin, /opt/homebrew/sbin, /usr/local/bin, /System/Cryptexes/App/usr/bin, /usr/bin, /bin, /usr/sbin, /sbin, /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin, /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin, /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin, /Library/Apple/usr/bin, /Applications/Wireshark.app/Contents/MacOS, /Users/rodcheater/Library/Application Support/JetBrains/Toolbox/scripts, /Users/rodcheater/.orbstack/bin])
2025-08-27 09:40:59,719 ERROR [org.tes.doc.DockerClientProviderStrategy] (build-11) 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.
See https://java.testcontainers.org/on_failure.html for more details.
2025-08-27 09:40:59,984 WARN [io.qua.dep.uti.ContainerRuntimeUtil] (build-11) Command "docker" failed. Rootless container runtime detection might not be reliable or the container service is not running at all.
This is despite having quarkus.datasource.jdbc.url set. I’m not seeing these warnings before 3.25 so it looks like this is a regression.
Expected behavior
No warnings about missing Docker.
Actual behavior
There are warnings about missing Docker.
How to Reproduce?
Reproducer: quarkus-reproducer.zip
Steps to reproduce
- Run in dev mode:
./gradlew quarkusDev
Expected result
No warnings about missing Docker.
Actual result
There are warnings about missing Docker.
Output of uname -a or ver
Darwin Rods-MacBook-Pro.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:55 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6031 arm64
Output of java -version
openjdk version "21.0.7" 2025-04-15 OpenJDK Runtime Environment Homebrew (build 21.0.7) OpenJDK 64-Bit Server VM Homebrew (build 21.0.7, mixed mode, sharing)
Quarkus version or git rev
3.25.4
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 8.14.1
Additional information
No response