Skip to content

Commit

Permalink
Use docker index when target repo is Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
jpreese committed Jul 6, 2020
1 parent eba0d5b commit 7723b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/commands/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
)

func getEncodedAuthForRegistry(registry string) (string, error) {
if registry == "" {
registry = "https://index.docker.io/v2/"
if registry == "" || registry == "docker.io" {
registry = "https://index.docker.io/v1/"
}

cfg, err := config.Load(config.Dir())
Expand Down

0 comments on commit 7723b6a

Please sign in to comment.