Search code examples
configurationdockerversiondocker-registry

How to make Docker to avoid V1 registry


Docker versions 1.6 and above use the Docker Registry V2 API however it is still liable to make requests looking for an old V1 registry. I think I saw there is a configuration option to make Docker avoid making any /v1/ requests.

I saw this option very recently but now I can't find it. I suspect it was in a page linked to by the Docker email that told us the Registry will stop supporting Docker versions prior to 1.6

I know Docker only looks for a V1 registry when it has no luck looking for /v2 but I want to stop it altogether. How can I stop Docker making requests to /v1/ registry URLs under any circumstances ?


Solution

  • --disable-legacy-registry

    "prevents the docker daemon from pull, push, and login operations against v1 registries." - Source