diff --git a/docs/config.go b/docs/config.go index 7d8b6301a..561e1d6e1 100644 --- a/docs/config.go +++ b/docs/config.go @@ -34,7 +34,17 @@ var ( // NotaryServer is the endpoint serving the Notary trust server NotaryServer = "https://notary.docker.io" - // IndexServer = "https://registry-stage.hub.docker.com/v1/" + // 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 = &url.URL{ + Scheme: "https", + Host: "registry-1.docker.io", + } ) var ( diff --git a/docs/config_unix.go b/docs/config_unix.go index c3c19162f..b81d24933 100644 --- a/docs/config_unix.go +++ b/docs/config_unix.go @@ -2,24 +2,6 @@ package registry -import ( - "net/url" -) - -var ( - // 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 = &url.URL{ - Scheme: "https", - Host: "registry-1.docker.io", - } -) - var ( // CertsDir is the directory where certificates are stored CertsDir = "/etc/docker/certs.d" diff --git a/docs/config_windows.go b/docs/config_windows.go index f1ee488b1..82bc4afea 100644 --- a/docs/config_windows.go +++ b/docs/config_windows.go @@ -1,30 +1,11 @@ package registry import ( - "net/url" "os" "path/filepath" "strings" ) -var ( - // DefaultV1Registry is the URI of the default v1 registry - DefaultV1Registry = &url.URL{ - Scheme: "https", - Host: "registry-win-tp3.docker.io", - } - - // DefaultV2Registry is the URI of the default (official) v2 registry. - // This is the windows-specific endpoint. - // - // Currently it is a TEMPORARY link that allows Microsoft to continue - // development of Docker Engine for Windows. - DefaultV2Registry = &url.URL{ - Scheme: "https", - Host: "registry-win-tp3.docker.io", - } -) - // CertsDir is the directory where certificates are stored var CertsDir = os.Getenv("programdata") + `\docker\certs.d`