From 8a4d20d93ec825e3bf3de12a5af96d9ab43044f2 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 3 Feb 2022 14:34:00 +1100 Subject: [PATCH] Fix volume arguments passed to sandbox. (#222) Previously they were being passed after the image name, resulting in them being passed as arguments to the container entrypoint ("sleep"). --- internal/sandbox/sandbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sandbox/sandbox.go b/internal/sandbox/sandbox.go index 908e418a..3361cd96 100644 --- a/internal/sandbox/sandbox.go +++ b/internal/sandbox/sandbox.go @@ -197,9 +197,9 @@ func (s *podmanSandbox) createContainer() (string, error) { "--runtime=" + runtimeBin, "--init", "--hostname=" + hostname, - s.imageWithTag(), } args = append(args, s.extraArgs()...) + args = append(args, s.imageWithTag()) cmd := podman(args...) var buf bytes.Buffer cmd.Stdout = &buf