diff options
author | Matthew Heon <matthew.heon@pm.me> | 2020-05-18 14:37:09 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-05-20 16:11:05 -0400 |
commit | e7f4e98c450e2381c70109b308591853f9ac909e (patch) | |
tree | a1794a9ecb248a891e52898cd69a9895609f95ec /libpod/oci.go | |
parent | 6a75dfa8a85d7b9677f545aba976dbe82404cf3d (diff) | |
download | podman-e7f4e98c450e2381c70109b308591853f9ac909e.tar.gz podman-e7f4e98c450e2381c70109b308591853f9ac909e.tar.bz2 podman-e7f4e98c450e2381c70109b308591853f9ac909e.zip |
Add exit commands to exec sessions
These are required for detached exec, where they will be used to
clean up and remove exec sessions when they exit.
As part of this, move all Exec related functionality for the
Conmon OCI runtime into a separate file; the existing one was
around 2000 lines.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/oci.go')
-rw-r--r-- | libpod/oci.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index 6b1886f80..da4030c14 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -165,6 +165,9 @@ type ExecOptions struct { // If provided but set to "", detaching from the container will be // disabled. DetachKeys *string + // ExitCommand is a command that will be run after the exec session + // exits. + ExitCommand []string } // HTTPAttachStreams informs the HTTPAttach endpoint which of the container's |