config_unix.go 830 B

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