config_unix.go 646 B

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