Browse Source

Add '.' to valid container name pattern

Jonathan Rudenberg 11 years ago
parent
commit
1940015824
1 changed files with 1 additions and 1 deletions
  1. 1 1
      runtime.go

+ 1 - 1
runtime.go

@@ -32,7 +32,7 @@ const MaxImageDepth = 127
 
 
 var (
 var (
 	defaultDns         = []string{"8.8.8.8", "8.8.4.4"}
 	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 {
 type Capabilities struct {