config_unix.go 578 B

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