Skip to content

Commit

Permalink
Launch private registry with init so the container can be killed on c…
Browse files Browse the repository at this point in the history
…leanup (k3s-io#10822)

Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Oct 9, 2024
1 parent eac26ef commit 05cba40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/privateregistry/privateregistry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 05cba40

Please sign in to comment.