Commit da1f481
fix: preserve unix socket schema in testcontainers host from properties (#3213)
This fix addresses an issue where unix socket URLs like 'unix:///var/run/docker.sock'
would have their schema stripped when parsed through testcontainersHostFromProperties,
causing Docker client initialization to fail.
The solution validates the URL format but preserves the original URL with schema
for Docker client compatibility, while maintaining backward compatibility for
other use cases.
- Fix testcontainersHostFromProperties to preserve unix socket schema
- Add comprehensive test coverage for unix socket handling
- Ensure TCP hosts continue to work as expected
Co-authored-by: Manuel de la Peña <[email protected]>1 parent 906c1aa commit da1f481
2 files changed
+22
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
306 | | - | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | | - | |
| 183 | + | |
183 | 184 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
187 | 200 | | |
188 | 201 | | |
189 | 202 | | |
| |||
0 commit comments