github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/volume/store/store_windows.go (about)

     1  package store
     2  
     3  import "strings"
     4  
     5  // normaliseVolumeName is a platform specific function to normalise the name
     6  // of a volume. On Windows, as NTFS is case insensitive, under
     7  // c:\ProgramData\Docker\Volumes\, the folders John and john would be synonymous.
     8  // Hence we can't allow the volume "John" and "john" to be created as separate
     9  // volumes.
    10  func normaliseVolumeName(name string) string {
    11  	return strings.ToLower(name)
    12  }