summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-29 07:19:05 -0700
committerGitHub <noreply@github.com>2019-03-29 07:19:05 -0700
commitdd2bf915406444934e246fecf45e41937e2ff56f (patch)
treec189ab8eb9edb3a068724608cee0ef987b4ea90f /libpod/options.go
parent9b789359f17f22bdd2ed49087c23eebf39f338f3 (diff)
parent449b8ab7b14fcc0d9e3badbe14b09f387c2c459c (diff)
downloadpodman-dd2bf915406444934e246fecf45e41937e2ff56f.tar.gz
podman-dd2bf915406444934e246fecf45e41937e2ff56f.tar.bz2
podman-dd2bf915406444934e246fecf45e41937e2ff56f.zip
Merge pull request #2793 from mheon/alter_name_regex
Alter container/pod/volume name regexp to match Docker
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 84c541314..55a0c0999 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -18,7 +18,7 @@ import (
)
var (
- nameRegex = regexp.MustCompile("[a-zA-Z0-9_-]+")
+ nameRegex = regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$")
)
// Runtime Creation Options