Skip to content

Commit df49f93

Browse files
fix: docker auth for docker.io images
1 parent 8528d77 commit df49f93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker_auth.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ func dockerImageAuth(ctx context.Context, image string, configs map[string]regis
4242
defaultRegistry := defaultRegistryFn(ctx)
4343
reg := core.ExtractRegistry(image, defaultRegistry)
4444

45+
if reg == "docker.io" {
46+
reg = defaultRegistry
47+
}
48+
4549
if cfg, ok := getRegistryAuth(reg, configs); ok {
4650
return reg, cfg, nil
4751
}

0 commit comments

Comments
 (0)