spiegel_podman/pkg/specgen/generate
Matthew Heon 6b9e9610d8 Enable cleanup processes for detached exec
The cleanup command creation logic is made public as part of this
and wired such that we can call it both within SpecGen (to make
container exit commands) and from the ABI detached exec handler.
Exit commands are presently only used for detached exec, but
theoretically could be turned on for all exec sessions if we
wanted (I'm declining to do this because of potential overhead).

I also forgot to copy the exit command from the exec config into
the ExecOptions struct used by the OCI runtime, so it was not
being added.

There are also two significant bugfixes for exec in here. One is
for updating the status of running exec sessions - this was
always failing as I had coded it to remove the exit file *before*
reading it, instead of after (oops). The second was that removing
a running exec session would always fail because I inverted the
check to see if it was running.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-05-20 16:11:05 -04:00
..
config_linux.go podman v2 remove bloat v2 2020-04-16 12:04:46 -05:00
config_linux_cgo.go podman: add support for --rootfs 2020-04-24 12:56:20 +02:00
config_linux_nocgo.go v2specgen prune libpod 2020-04-14 20:02:20 -05:00
container.go set binding tests to required 2020-05-08 09:05:37 -05:00
container_create.go Enable cleanup processes for detached exec 2020-05-20 16:11:05 -04:00
namespaces.go add {generate,play} kube 2020-05-06 17:08:22 +02:00
oci.go Add remaining annotations for podman inspect 2020-05-08 14:45:32 -04:00
pod_create.go Fix podman pod create --infra=false 2020-05-08 13:25:41 -04:00
ports.go Rework port parsing to support --expose and -P 2020-05-04 20:57:27 -04:00
security.go Properly handle default capabilities listed in containers.conf 2020-05-01 15:00:26 -04:00
storage.go Add support for volumes-from, image volumes, init 2020-04-27 13:13:21 -04:00