1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add '.' to valid container name pattern

This commit is contained in:
Jonathan Rudenberg 2013-12-16 21:15:51 -05:00
parent 1acefac97e
commit 1940015824

View file

@ -32,7 +32,7 @@ const MaxImageDepth = 127
var (
defaultDns = []string{"8.8.8.8", "8.8.4.4"}
validContainerName = regexp.MustCompile(`^/?[a-zA-Z0-9_-]+$`)
validContainerName = regexp.MustCompile(`^/?[a-zA-Z0-9_.-]+$`)
)
type Capabilities struct {