podman/pkg/specgen/generate
Matthew Heon e0d9404634 Enable detached exec for remote
The biggest obstacle here was cleanup - we needed a way to remove
detached exec sessions after they exited, but there's no way to
tell if an exec session will be attached or detached when it's
created, and that's when we must add the exit command that would
do the removal. The solution was adding a delay to the exit
command (5 minutes), which gives sufficient time for attached
exec sessions to retrieve the exit code of the session after it
exits, but still guarantees that they will be removed, even for
detached sessions. This requires Conmon 2.0.17, which has the new
`--exit-delay` flag.

As part of the exit command rework, we can drop the hack we were
using to clean up exec sessions (remove them as part of inspect).
This is a lot cleaner, and I'm a lot happier about it.

Otherwise, this is just plumbing - we need a bindings call for
detached exec, and that needed to be added to the tunnel mode
backend for entities.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-06-02 15:30:42 -04:00
..
config_linux.go specgen: fix segfault 2020-05-27 14:52:17 -04:00
config_linux_cgo.go podman: add support for --rootfs 2020-04-24 12:56:20 +02:00
config_linux_nocgo.go Attempt to turn on build_without_cgo tests 2020-05-22 12:56:19 -04:00
container.go set binding tests to required 2020-05-08 09:05:37 -05:00
container_create.go Enable detached exec for remote 2020-06-02 15:30:42 -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