github.com/toplink-cn/moby@v0.0.0-20240305205811-460b4aebdf81/registry/config_unix.go (about) 1 //go:build !windows 2 3 package registry // import "github.com/docker/docker/registry" 4 5 // defaultCertsDir is the platform-specific default directory where certificates 6 // are stored. On Linux, it may be overridden through certsDir, for example, when 7 // running in rootless mode. 8 const defaultCertsDir = "/etc/docker/certs.d" 9 10 // cleanPath is used to ensure that a directory name is valid on the target 11 // platform. It will be passed in something *similar* to a URL such as 12 // https:/index.docker.io/v1. Not all platforms support directory names 13 // which contain those characters (such as : on Windows) 14 func cleanPath(s string) string { 15 return s 16 }