From 3dda1b1702b2ac37a46d2da22d232954446f0d21 Mon Sep 17 00:00:00 2001 From: Radu Matei Date: Mon, 1 May 2023 17:10:25 +0200 Subject: [PATCH] Update default docker.io registry This commit updates the default endpoint for DockerHub to be `index.docker.io`. This is the default endpoint that the Docker CLI is using. Running `docker info`, this is the endpoint returned for the registry: ``` $ docker info | grep Registry Registry: https://index.docker.io/v1 ``` This means we can now push references to `index.docker.io/user/repo:tag`. Signed-off-by: Radu Matei --- src/reference.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reference.rs b/src/reference.rs index 832b9857..335bb5a2 100644 --- a/src/reference.rs +++ b/src/reference.rs @@ -108,7 +108,7 @@ impl Reference { pub fn resolve_registry(&self) -> &str { let registry = self.registry(); match registry { - "docker.io" => "registry-1.docker.io", + "docker.io" => "index.docker.io", _ => registry, } }