|
@@ -36,20 +36,16 @@ var (
|
|
// that carries Registry version info
|
|
// that carries Registry version info
|
|
DefaultRegistryVersionHeader = "Docker-Distribution-Api-Version"
|
|
DefaultRegistryVersionHeader = "Docker-Distribution-Api-Version"
|
|
|
|
|
|
- // IndexServer is the v1 registry server used for user auth + account creation
|
|
|
|
- IndexServer = DefaultV1Registry.String() + "/v1/"
|
|
|
|
|
|
+ // IndexHostname is the index hostname
|
|
|
|
+ IndexHostname = "index.docker.io"
|
|
|
|
+ // IndexServer is used for user auth and image search
|
|
|
|
+ IndexServer = "https://" + IndexHostname + "/v1/"
|
|
// IndexName is the name of the index
|
|
// IndexName is the name of the index
|
|
IndexName = "docker.io"
|
|
IndexName = "docker.io"
|
|
|
|
|
|
// NotaryServer is the endpoint serving the Notary trust server
|
|
// NotaryServer is the endpoint serving the Notary trust server
|
|
NotaryServer = "https://notary.docker.io"
|
|
NotaryServer = "https://notary.docker.io"
|
|
|
|
|
|
- // DefaultV1Registry is the URI of the default v1 registry
|
|
|
|
- DefaultV1Registry = &url.URL{
|
|
|
|
- Scheme: "https",
|
|
|
|
- Host: "index.docker.io",
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// DefaultV2Registry is the URI of the default v2 registry
|
|
// DefaultV2Registry is the URI of the default v2 registry
|
|
DefaultV2Registry = &url.URL{
|
|
DefaultV2Registry = &url.URL{
|
|
Scheme: "https",
|
|
Scheme: "https",
|