1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00
Signed-off-by: Olivier Gambier <viapanda@gmail.com>
This commit is contained in:
Olivier Gambier
2015-09-12 22:10:54 -07:00
parent 1a8fb2a071
commit 009ed57719

View File

@@ -24,8 +24,8 @@ import (
)
var (
validHostNameChars = `[a-zA-Z0-9\-\.]`
validHostNamePattern = regexp.MustCompile(`^` + validHostNameChars + `+$`)
validHostNameChars = `^[a-zA-Z0-9][a-zA-Z0-9\-\.]*$`
validHostNamePattern = regexp.MustCompile(validHostNameChars)
errMachineMustBeRunningForUpgrade = errors.New("Error: machine must be running to upgrade.")
stateTimeoutDuration = time.Second * 3
)