config_unix.go 785 B

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