-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Read indexServerAddress
from Docker's /info
#5347
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
Conversation
You might be interested in this one: docker/cli#2819 I myself didn't have the time to adopt that change in my docker-client implementation - fetching the daemon's index server address still seems to work. |
@gesellix interesting, many thanks for sharing! |
@gesellix Isn't the new approach just using a hardcoded value? And |
FTR it looks like they hardcoded it to avoid calling |
Yes, that's my impression, too, and from reading the details I would assume that calling the I wonder, though, if using the Maybe there's a little detail missing when handling the default index domains. As far as I know a client should handle both edit: I didn't find the issue before, but this is why I mentioned the "default domain": #4912 (comment) (which is related to #4474). |
👋 sorry for commenting on old PRs, but I was working on some changes in this area, and saw this PR linked to our repo.
@bsideup The That endpoint should return some minimum amount of information in the Headers (API version supported, platform (windows / linux)); curl --unix-socket /var/run/docker.sock -I 'http://foo/_ping'
HTTP/1.1 200 OK
Api-Version: 1.43
Builder-Version: 2
Cache-Control: no-cache, no-store, must-revalidate
Content-Type: text/plain; charset=utf-8
Date: Tue, 11 Apr 2023 21:13:45 GMT
Docker-Experimental: false
Ostype: linux
Pragma: no-cache
Server: Docker/22.06.0-beta.0-926-g914b02ebaf.m (linux)
Swarm: active/manager |
Related to #5263
Fixes #5121