diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-29 07:19:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-29 07:19:05 -0700 |
commit | dd2bf915406444934e246fecf45e41937e2ff56f (patch) | |
tree | c189ab8eb9edb3a068724608cee0ef987b4ea90f | |
parent | 9b789359f17f22bdd2ed49087c23eebf39f338f3 (diff) | |
parent | 449b8ab7b14fcc0d9e3badbe14b09f387c2c459c (diff) | |
download | podman-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
-rw-r--r-- | libpod/options.go | 2 |
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 |