config_unix.go 686 B

12345678910111213141516171819202122
  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. // CertsDir is the directory where certificates are stored
  9. CertsDir = "/etc/docker/certs.d"
  10. )
  11. // cleanPath is used to ensure that a directory name is valid on the target
  12. // platform. It will be passed in something *similar* to a URL such as
  13. // https:/index.docker.io/v1. Not all platforms support directory names
  14. // which contain those characters (such as : on Windows)
  15. func cleanPath(s string) string {
  16. return s
  17. }