Allow hyphen in "id" (based on `cwd` pathname)

A directory with a hyphen currently generates an InvalidId error because
of the regex in libcontainer.  I don't believe there is any reason a
hyphen should be disallowed.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
This commit is contained in:
Phil Estes 2015-06-25 11:27:25 -07:00
parent d05943b95f
commit d95050084b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ const (
) )
var ( var (
idRegex = regexp.MustCompile(`^[\w_]+$`) idRegex = regexp.MustCompile(`^[\w_-]+$`)
maxIdLen = 1024 maxIdLen = 1024
) )