github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/registry/config_windows.go (about) 1 package registry // import "github.com/demonoid81/moby/registry" 2 3 import ( 4 "os" 5 "path/filepath" 6 "strings" 7 ) 8 9 // CertsDir is the directory where certificates are stored 10 var CertsDir = os.Getenv("programdata") + `\docker\certs.d` 11 12 // cleanPath is used to ensure that a directory name is valid on the target 13 // platform. It will be passed in something *similar* to a URL such as 14 // https:\index.docker.io\v1. Not all platforms support directory names 15 // which contain those characters (such as : on Windows) 16 func cleanPath(s string) string { 17 return filepath.FromSlash(strings.Replace(s, ":", "", -1)) 18 }