2015-09-10 02:23:06 +00:00
|
|
|
package store
|
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
|
|
|
// normaliseVolumeName is a platform specific function to normalise the name
|
|
|
|
// of a volume. On Windows, as NTFS is case insensitive, under
|
|
|
|
// c:\ProgramData\Docker\Volumes\, the folders John and john would be synonymous.
|
2015-12-13 16:00:39 +00:00
|
|
|
// Hence we can't allow the volume "John" and "john" to be created as separate
|
2015-09-10 02:23:06 +00:00
|
|
|
// volumes.
|
|
|
|
func normaliseVolumeName(name string) string {
|
|
|
|
return strings.ToLower(name)
|
|
|
|
}
|