mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
87535ca2e9
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>
18 lines
556 B
Go
18 lines
556 B
Go
package registry
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"strings"
|
|
)
|
|
|
|
// CertsDir is the directory where certificates are stored
|
|
var CertsDir = os.Getenv("programdata") + `\docker\certs.d`
|
|
|
|
// cleanPath is used to ensure that a directory name is valid on the target
|
|
// platform. It will be passed in something *similar* to a URL such as
|
|
// https:\index.docker.io\v1. Not all platforms support directory names
|
|
// which contain those characters (such as : on Windows)
|
|
func cleanPath(s string) string {
|
|
return filepath.FromSlash(strings.Replace(s, ":", "", -1))
|
|
}
|