-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On remote connect failure, docker erronously refers to "docker.example.com" #5604
Comments
Thanks for reporting
Someone here is the Go stdlibrary 😂 A bit more context; This error is produced by the go stdlib; the reason you get the We recently had to add a similar "dummy" domain to the client code, after a breaking change in Go's stdlib forced a dummy domain to be used for other purposes. For that case we chose cli/vendor/github.com/docker/docker/client/client.go Lines 65 to 93 in 917d2dc
I'm not 100% sure if we'd be able to fully rewrite the error-message, other than through string-matching, which may be too brittle (but it's worth looking into) |
If you can't rewrite it, can you at least wrap it to include the hostname that the user actually provided? |
Description
When trying to connect to a remote host, and the connection fails for whatever reason, it returns the error:
I spent way too much time trying to figure out why docker was trying to connect to docker.example.com instead of my desired host, not realizing someone had just been lazy and chose not to write a proper error message.
Reproduce
Expected behavior
No response
docker version
Client: Docker Engine - Community
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
Git commit: ce12230
Built: Fri Sep 20 11:40:59 2024
OS/Arch: linux/amd64
Context: default
docker info
Client: Docker Engine - Community
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.17.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
Additional Info
No response
The text was updated successfully, but these errors were encountered: