diff options
author | Boaz Shuster <boaz.shuster.github@gmail.com> | 2022-09-20 12:11:39 +0300 |
---|---|---|
committer | Boaz Shuster <boaz.shuster.github@gmail.com> | 2022-09-20 22:52:45 +0300 |
commit | 7cfe0328f1c231ed318c38938479f7dec7fc97fa (patch) | |
tree | 8b0bfcfe8fbc9e7af30cfcb84b567293b03f40f6 /pkg/domain/infra/tunnel/containers.go | |
parent | 30231d0da7e6dcf3d6d1f45b10150baae35aaf28 (diff) | |
download | podman-7cfe0328f1c231ed318c38938479f7dec7fc97fa.tar.gz podman-7cfe0328f1c231ed318c38938479f7dec7fc97fa.tar.bz2 podman-7cfe0328f1c231ed318c38938479f7dec7fc97fa.zip |
Add support to sig-proxy for podman-remote
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/containers.go')
-rw-r--r-- | pkg/domain/infra/tunnel/containers.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go index 0dc73081d..dd296f710 100644 --- a/pkg/domain/infra/tunnel/containers.go +++ b/pkg/domain/infra/tunnel/containers.go @@ -825,6 +825,13 @@ func (ic *ContainerEngine) ContainerRun(ctx context.Context, opts entities.Conta } // Attach + if opts.SigProxy { + remoteProxySignals(con.ID, func(signal string) error { + killOpts := entities.KillOptions{All: false, Latest: false, Signal: signal} + _, err := ic.ContainerKill(ctx, []string{con.ID}, killOpts) + return err + }) + } if err := startAndAttach(ic, con.ID, &opts.DetachKeys, opts.InputStream, opts.OutputStream, opts.ErrorStream); err != nil { if err == define.ErrDetach { return &report, nil |