6 "github.com/spf13/pflag"
10 // CertsDir is the directory where certificates are stored
11 CertsDir = "/etc/docker/certs.d"
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 {
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", true, "Disable contacting legacy registries")