I did a deep dive into this, and the issue lies with the Java Docker API Client Dependency. As detailed in this issue, when the client detects a unix://
connection, it automatically changes the host to localhost:2375
. This creates problems when the intended Docker host is a Unix socket rather than a TCP connection.
A potential solution? A PR has been submitted to address this, but it hasn’t been merged yet. However, the contributor has a working version available in a forked repo, which might be worth trying.
If anyone has an alternative fix, share please