Title: Issue with ApacheDockerHttpClient Handling unix:// Connections · Issue #2380 · docker-java/docker-java · GitHub
Open Graph Title: Issue with ApacheDockerHttpClient Handling unix:// Connections · Issue #2380 · docker-java/docker-java
X Title: Issue with ApacheDockerHttpClient Handling unix:// Connections · Issue #2380 · docker-java/docker-java
Description: Hi Docker-Java-Devs, I hope you're doing well. I wanted to bring to your attention an issue I've encountered with the ApacheDockerHttpClient when connecting to Docker via a Unix socket (unix://). Specifically, when the client detects a u...
Open Graph Description: Hi Docker-Java-Devs, I hope you're doing well. I wanted to bring to your attention an issue I've encountered with the ApacheDockerHttpClient when connecting to Docker via a Unix socket (unix://). S...
X Description: Hi Docker-Java-Devs, I hope you're doing well. I wanted to bring to your attention an issue I've encountered with the ApacheDockerHttpClient when connecting to Docker via a Unix socket (uni...
Opengraph URL: https://github.com/docker-java/docker-java/issues/2380
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with ApacheDockerHttpClient Handling unix:// Connections","articleBody":"Hi Docker-Java-Devs,\n\nI hope you're doing well.\n\nI wanted to bring to your attention an issue I've encountered with the ApacheDockerHttpClient when connecting to Docker via a Unix socket (unix://). Specifically, when the client detects a unix:// connection, it automatically changes the host to localhost:2375. This behavior causes issues when the Docker host is intended to be a Unix socket, and not TCP.\n\nThis seems to be problematic both on Linux and Windows environments, as it tries to connect to the wrong endpoint (localhost), resulting in the following error:\n\n```\nHttpHostConnectException: Connect to unix://localhost:2375 failed: Connection refused\n```\n\nInterestingly, this issue does not occur when using the OkHttpDockerHttpClient. The OkHttp client correctly handles the unix:// scheme without trying to alter the connection to localhost, which resolves the issue.\n\nIt would be great if we could review and potentially update the handling of unix:// connections in ApacheDockerHttpClient to prevent this automatic conversion to localhost.\n\nLet me know if you need any further details or assistance on this.\n\nBest regards,\nLuis Miguel Vasquez\nJava Developer","author":{"url":"https://github.com/latamsystems","@type":"Person","name":"latamsystems"},"datePublished":"2025-02-15T21:39:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/2380/docker-java/issues/2380"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b82a3aa7-d58f-b724-d5a5-4c3682f96e45 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C140:22C7B5:F26A0A:149F282:69729812 |
| html-safe-nonce | 12797c8f2e32f3a32a3fb6e145807a680b9960028742f38ca3155d27750c2396 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTQwOjIyQzdCNTpGMjZBMEE6MTQ5RjI4Mjo2OTcyOTgxMiIsInZpc2l0b3JfaWQiOiI4MDQ1MDU1NTUyMDM2OTY4NDY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 856d3c5dbfb45a5a90ec55cf61e69912967831cde56e8326832b4b5e37a52312 |
| hovercard-subject-tag | issue:2855729396 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/2380/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0315d10ed04a26478b8d6558749d4110394ef4216ec84aa7d8c8c75bdca6bb70/docker-java/docker-java/issues/2380 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0315d10ed04a26478b8d6558749d4110394ef4216ec84aa7d8c8c75bdca6bb70/docker-java/docker-java/issues/2380 |
| og:image:alt | Hi Docker-Java-Devs, I hope you're doing well. I wanted to bring to your attention an issue I've encountered with the ApacheDockerHttpClient when connecting to Docker via a Unix socket (unix://). S... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | latamsystems |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72bb1c46bb1ebdc0dc83a0a57b64c3b4d668c125d1125d94898213a4c9db8da2 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git |
| octolytics-dimension-user_id | 7772003 |
| octolytics-dimension-user_login | docker-java |
| octolytics-dimension-repository_id | 20415251 |
| octolytics-dimension-repository_nwo | docker-java/docker-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20415251 |
| octolytics-dimension-repository_network_root_nwo | docker-java/docker-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7b2326416cb9f2fa4ab7b6ede33ad46d0dd431a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width