Merge pull request #4200 from mheon/fix_sigproxy_start

Respect --sig-proxy flag with podman start --attach
This commit is contained in:
OpenShift Merge Robot 2019-10-09 10:23:03 -07:00 committed by GitHub
commit f61e399a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")