Skip to content

Commit

Permalink
Respect --sig-proxy flag with podman start --attach
Browse files Browse the repository at this point in the history
If it's explicitly set, use it, instead of trying to set a sane
default.

Signed-off-by: Matthew Heon <[email protected]>
  • Loading branch information
mheon committed Oct 9, 2019
1 parent c3c40f9 commit 8b5f165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/podman/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func startCmd(c *cliconfig.StartValues) error {
}

sigProxy := c.SigProxy || attach
if c.Flag("sig-proxy").Changed {
sigProxy = c.SigProxy
}

if sigProxy && !attach {
return errors.Wrapf(define.ErrInvalidArg, "you cannot use sig-proxy without --attach")
Expand Down

0 comments on commit 8b5f165

Please sign in to comment.