diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-22 17:06:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 17:06:45 +0200 |
commit | 8bf3535447fe9f482b329e962e173ade26456e6d (patch) | |
tree | 39375c55d8bda145631c4d739fdf3013945b8ad1 /pkg/domain/infra/tunnel/containers.go | |
parent | 828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f (diff) | |
parent | 7cfe0328f1c231ed318c38938479f7dec7fc97fa (diff) | |
download | podman-8bf3535447fe9f482b329e962e173ade26456e6d.tar.gz podman-8bf3535447fe9f482b329e962e173ade26456e6d.tar.bz2 podman-8bf3535447fe9f482b329e962e173ade26456e6d.zip |
Merge pull request #15131 from boaz0/closes_14707
Add support to sig-proxy for podman-remote
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 c82c9ba33..0b573686f 100644 --- a/pkg/domain/infra/tunnel/containers.go +++ b/pkg/domain/infra/tunnel/containers.go @@ -828,6 +828,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 |