Skip to content

Commit

Permalink
Fix volume arguments passed to sandbox. (#222)
Browse files Browse the repository at this point in the history
Previously they were being passed after the image name, resulting in
them being passed as arguments to the container entrypoint ("sleep").
  • Loading branch information
oliverchang authored Feb 3, 2022
1 parent 5c0f8e6 commit 8a4d20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sandbox/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a4d20d

Please sign in to comment.