Commit dbc68b3
committed
Honor checks.disable in Docker detection test
When checks.disable is set to true, skip the socket connectivity test
in DockerClientProviderStrategy.test(). This allows Windows/WSL2 users
with working Docker to bypass the failing socket test while still
enabling Docker detection.
Fixes #4958 - TestContainers cannot detect Docker on Windows/WSL2
despite Docker being accessible via CLI and TCP.
The socket connectivity test fails on Windows/WSL2 even when Docker
is accessible via curl and CLI. By honoring the existing checks.disable
configuration, users can opt out of the connectivity test and rely on
their explicit docker.host configuration.1 parent 3878311 commit dbc68b3
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
0 commit comments