github.com/kobeld/docker@v1.12.0-rc1/registry/config_windows.go (about) 1 package 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 }