Browse Source

Launch private registry with init so the container can be killed on cleanup (#11045)

Signed-off-by: Derek Nola <derek.nola@suse.com>
pull/11075/head
Derek Nola 1 month ago committed by GitHub
parent
commit
3999f832a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      tests/e2e/privateregistry/privateregistry_test.go

2
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())

Loading…
Cancel
Save