github.com/tompao/docker@v1.9.1/registry/config_unix.go (about)

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