config_unix.go 665 B

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