瀏覽代碼

Remove Windows-specific default registry definitions

Going forward, Docker won't use a different default registry on Windows.
This changes Windows to use the standard Docker Hub registry as the
default registry.

There is a plan in place to migrate existing images from the Windows
registry to Hub's normal registry, in advance of the 1.11 release. In
the mean time, images on the Windows registry can be accessed by
prefixing them with `registry-win-tp3.docker.io/`.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Aaron Lehmann 9 年之前
父節點
當前提交
87535ca2e9
共有 3 個文件被更改,包括 11 次插入38 次删除
  1. 11 1
      registry/config.go
  2. 0 18
      registry/config_unix.go
  3. 0 19
      registry/config_windows.go

+ 11 - 1
registry/config.go

@@ -34,7 +34,17 @@ var (
 	// 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"
 
 
-	// 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 (
 var (

+ 0 - 18
registry/config_unix.go

@@ -2,24 +2,6 @@
 
 
 package registry
 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 (
 var (
 	// CertsDir is the directory where certificates are stored
 	// CertsDir is the directory where certificates are stored
 	CertsDir = "/etc/docker/certs.d"
 	CertsDir = "/etc/docker/certs.d"

+ 0 - 19
registry/config_windows.go

@@ -1,30 +1,11 @@
 package registry
 package registry
 
 
 import (
 import (
-	"net/url"
 	"os"
 	"os"
 	"path/filepath"
 	"path/filepath"
 	"strings"
 	"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
 // CertsDir is the directory where certificates are stored
 var CertsDir = os.Getenv("programdata") + `\docker\certs.d`
 var CertsDir = os.Getenv("programdata") + `\docker\certs.d`