From 6077c1cbf1bef1078310dfd2705748effb386f18 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Tue, 3 May 2022 13:55:35 -0700 Subject: [PATCH] Internal change. PiperOrigin-RevId: 446281996 --- runsc/container/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runsc/container/container.go b/runsc/container/container.go index 344335615..973c806ac 100644 --- a/runsc/container/container.go +++ b/runsc/container/container.go @@ -50,7 +50,7 @@ const cgroupParentAnnotation = "dev.gvisor.spec.cgroup-parent" // validateID validates the container id. func validateID(id string) error { // See libcontainer/factory_linux.go. - idRegex := regexp.MustCompile(`^[\w+-\.]+$`) + idRegex := regexp.MustCompile(`^[\w+\.-]+$`) if !idRegex.MatchString(id) { return fmt.Errorf("invalid container id: %v", id) }