瀏覽代碼

Add '.' to valid container name pattern

Jonathan Rudenberg 11 年之前
父節點
當前提交
1940015824
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      runtime.go

+ 1 - 1
runtime.go

@@ -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 {