gitee.com/bomy/docker.git@v1.13.1/registry/config_unix.go (about)

     1  // +build !windows
     2  
     3  package registry
     4  
     5  import (
     6  	"github.com/spf13/pflag"
     7  )
     8  
     9  var (
    10  	// CertsDir is the directory where certificates are stored
    11  	CertsDir = "/etc/docker/certs.d"
    12  )
    13  
    14  // cleanPath is used to ensure that a directory name is valid on the target
    15  // platform. It will be passed in something *similar* to a URL such as
    16  // https:/index.docker.io/v1. Not all platforms support directory names
    17  // which contain those characters (such as : on Windows)
    18  func cleanPath(s string) string {
    19  	return s
    20  }
    21  
    22  // installCliPlatformFlags handles any platform specific flags for the service.
    23  func (options *ServiceOptions) installCliPlatformFlags(flags *pflag.FlagSet) {
    24  	flags.BoolVar(&options.V2Only, "disable-legacy-registry", false, "Disable contacting legacy registries")
    25  }