Respect --sig-proxy flag with podman start --attach

If it's explicitly set, use it, instead of trying to set a sane
default.

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon 2019-10-04 13:36:07 -04:00 committed by Matthew Heon
parent c3c40f970e
commit 8b5f165fc1
1 changed files with 3 additions and 0 deletions

View File

@ -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")