From f844eef287a9fcb133a36a67e292a8ed1873493f Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Wed, 4 Sep 2024 16:22:24 -0700 Subject: [PATCH] Launch private registry with init so the container can be killed on cleanup (#10822) Signed-off-by: Derek Nola --- tests/e2e/privateregistry/privateregistry_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/privateregistry/privateregistry_test.go b/tests/e2e/privateregistry/privateregistry_test.go index 88a357a24abe..b3d4f2f237f8 100644 --- a/tests/e2e/privateregistry/privateregistry_test.go +++ b/tests/e2e/privateregistry/privateregistry_test.go @@ -84,7 +84,7 @@ var _ = Describe("Verify Create", Ordered, func() { }) It("Create new private registry", func() { - registry, err := e2e.RunCmdOnNode("docker run -d -p 5000:5000 --restart=always --name registry registry:2 ", serverNodeNames[0]) + registry, err := e2e.RunCmdOnNode("docker run --init -d -p 5000:5000 --restart=always --name registry registry:2 ", serverNodeNames[0]) fmt.Println(registry) Expect(err).NotTo(HaveOccurred())