DockerCLI/cli/command/system/testdata
Sebastiaan van Stijn 375b17a312
docker info: don't print "registry" (IndexServerAddress)
The IndexServerAddress field was  as part of the initial Windows implementation
of the engine. For legal reasons, Microsoft Windows (and thus Docker images
based on Windows) were not allowed to be distributed through non-Microsoft
infrastructure. As a temporary solution, a dedicated "registry-win-tp3.docker.io"
registry was created to serve Windows images.

Currently, this field always shows "https://index.docker.io/v1/", which is
confusing, because that address is not used for the registry (only for
authentication and "v1" search).

    docker info
    ...
    Registry: https://index.docker.io/v1/

Starting with b4ca1c7368, this field is also
no longer used during authentication, and a3d56e7d06
removed the (deprecated) ElectAuthServer() which was previously used to
query it.

Given that there's currently no practical use for this information, and
it only adds "noise" (and confusion), this patch removes it from the default
output.

For now, the field is (still) available for those that want to use it;

    docker info --format '{{.IndexServerAddress}}'
    https://index.docker.io/v1/

But it won't be printed by default.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-04-13 14:49:14 +02:00
..
docker-client-version.golden remove "Experimental" client field from "docker version" 2022-04-08 15:48:00 +02:00
docker-client-version.json.golden cli/command/system: add platformInfo type, and fix "omitempty" 2023-04-11 18:58:39 +02:00
docker-info-badsec-stderr.golden info: print errors to stderr 2021-07-13 11:43:32 +02:00
docker-info-badsec.golden docker info: don't print "registry" (IndexServerAddress) 2023-04-13 14:49:14 +02:00
docker-info-badsec.json.golden vendor: github.com/docker/docker 8941dcfcc5db4aefc351cd5b5bb4d524823035c0 2022-03-28 17:21:59 +02:00
docker-info-daemon-warnings.json.golden docker info: include Client Version and "platform name" 2023-04-11 18:58:41 +02:00
docker-info-errors-stderr.golden info: print errors to stderr 2021-07-13 11:43:32 +02:00
docker-info-errors.golden info: print errors to stderr 2021-07-13 11:43:32 +02:00
docker-info-errors.json.golden Separate client and daemon info in `docker system info` 2019-01-25 14:38:04 +00:00
docker-info-legacy-warnings.json.golden docker info: include Client Version and "platform name" 2023-04-11 18:58:41 +02:00
docker-info-no-swarm.golden docker info: don't print "registry" (IndexServerAddress) 2023-04-13 14:49:14 +02:00
docker-info-no-swarm.json.golden docker info: include Client Version and "platform name" 2023-04-11 18:58:41 +02:00
docker-info-plugins-warnings.golden Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
docker-info-plugins.golden docker info: don't print "registry" (IndexServerAddress) 2023-04-13 14:49:14 +02:00
docker-info-plugins.json.golden vendor: github.com/docker/docker 8941dcfcc5db4aefc351cd5b5bb4d524823035c0 2022-03-28 17:21:59 +02:00
docker-info-warnings.golden printServerWarningsLegacy: silence "No kernel memory limit support" 2021-05-04 19:17:11 +09:00
docker-info-with-labels-empty.golden docker info: don't print "registry" (IndexServerAddress) 2023-04-13 14:49:14 +02:00
docker-info-with-labels-nil.golden docker info: don't print "registry" (IndexServerAddress) 2023-04-13 14:49:14 +02:00
docker-info-with-swarm.golden docker info: don't print "registry" (IndexServerAddress) 2023-04-13 14:49:14 +02:00
docker-info-with-swarm.json.golden vendor: github.com/docker/docker 8941dcfcc5db4aefc351cd5b5bb4d524823035c0 2022-03-28 17:21:59 +02:00