We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59e2a4d + 448f98a commit fdc8c33Copy full SHA for fdc8c33
1 file changed
ociclient/client.go
@@ -88,6 +88,9 @@ func New(host string, opts0 *Options) (oci.Interface, error) {
88
if opts.UserAgent == "" {
89
opts.UserAgent = "docker/oci"
90
}
91
+ if host == "docker.io" {
92
+ host = "registry-1.docker.io"
93
+ }
94
// Check that it's a valid host by forming a URL from it and checking that it matches.
95
u, err := url.Parse("https://" + host + "/path")
96
if err != nil {
0 commit comments