-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request moby#14970 from tiborvass/windows-registry-endpoint
registry: Change default endpoint on windows to a windows-specific one
- Loading branch information
Showing
6 changed files
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package registry | ||
|
||
const ( | ||
// DefaultNamespace is the default namespace | ||
DefaultNamespace = "docker.io" | ||
// DefaultRegistryVersionHeader is the name of the default HTTP header | ||
// that carries Registry version info | ||
DefaultRegistryVersionHeader = "Docker-Distribution-Api-Version" | ||
// DefaultV1Registry is the URI of the default v1 registry | ||
DefaultV1Registry = "https://index.docker.io" | ||
|
||
// CertsDir is the directory where certificates are stored | ||
CertsDir = "/etc/docker/certs.d" | ||
|
||
// IndexServer is the v1 registry server used for user auth + account creation | ||
IndexServer = DefaultV1Registry + "/v1/" | ||
// IndexName is the name of the index | ||
IndexName = "docker.io" | ||
|
||
// NotaryServer is the endpoint serving the Notary trust server | ||
NotaryServer = "https://notary.docker.io" | ||
|
||
// IndexServer = "https://registry-stage.hub.docker.com/v1/" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// +build !windows | ||
|
||
package registry | ||
|
||
// DefaultV2Registry is the URI of the default v2 registry | ||
const DefaultV2Registry = "https://registry-1.docker.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// +build windows | ||
|
||
package registry | ||
|
||
// 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. | ||
const DefaultV2Registry = "https://ms-tp3.registry-1.docker.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters