config_windows.go 819 B

12345678910111213141516171819202122232425
  1. package registry
  2. import (
  3. "os"
  4. "path/filepath"
  5. "strings"
  6. flag "github.com/docker/docker/pkg/mflag"
  7. )
  8. // CertsDir is the directory where certificates are stored
  9. var CertsDir = os.Getenv("programdata") + `\docker\certs.d`
  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 filepath.FromSlash(strings.Replace(s, ":", "", -1))
  16. }
  17. // installCliPlatformFlags handles any platform specific flags for the service.
  18. func (options *ServiceOptions) installCliPlatformFlags(cmd *flag.FlagSet, usageFn func(string) string) {
  19. // No Windows specific flags.
  20. }