summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-10-04 13:36:07 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-10-09 10:12:15 -0400
commit8b5f165fc1ec7bef15a0102544321b8d8c730347 (patch)
treee06d20367e6d827d6959cbfba8abbdb4d108b82f /cmd
parentc3c40f970e6441b70ac62fb050a35f79fedb8896 (diff)
downloadpodman-8b5f165fc1ec7bef15a0102544321b8d8c730347.tar.gz
podman-8b5f165fc1ec7bef15a0102544321b8d8c730347.tar.bz2
podman-8b5f165fc1ec7bef15a0102544321b8d8c730347.zip
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/start.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go
index 737a6d9f1..2d2cf74d2 100644
--- a/cmd/podman/start.go
+++ b/cmd/podman/start.go
@@ -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")