mirror of https://github.com/containers/podman.git
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:
parent
c3c40f970e
commit
8b5f165fc1
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue