config_unix.go 694 B

123456789101112131415161718192021222324
  1. // +build !windows
  2. package registry
  3. const (
  4. // DefaultV1Registry is the URI of the default v1 registry
  5. DefaultV1Registry = "https://index.docker.io"
  6. // DefaultV2Registry is the URI of the default v2 registry
  7. DefaultV2Registry = "https://registry-1.docker.io"
  8. )
  9. var (
  10. // CertsDir is the directory where certificates are stored
  11. CertsDir = "/etc/docker/certs.d"
  12. )
  13. // cleanPath is used to ensure that a directory name is valid on the target
  14. // platform. It will be passed in something *similar* to a URL such as
  15. // https:/index.docker.io/v1. Not all platforms support directory names
  16. // which contain those characters (such as : on Windows)
  17. func cleanPath(s string) string {
  18. return s
  19. }