spiegel_podman/pkg/api/handlers/compat
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
..
changes.go V2 podman diff(changes) support 2020-04-07 09:39:46 -07:00
containers.go V2 enable remote logs and testing 2020-05-22 07:51:29 -07:00
containers_archive.go v2 copy endpoints 2020-05-26 12:04:20 -05:00
containers_attach.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
containers_create.go Update podman to use containers.conf 2020-04-20 16:11:36 -04:00
containers_export.go podmanv2 export 2020-04-01 16:02:53 -05:00
containers_pause.go Refactor handler packages 2020-03-10 08:03:41 -07:00
containers_prune.go Adding system prune for podman v2 2020-04-24 15:44:07 -04:00
containers_restart.go podmanv2 add core container commands 2020-03-22 13:24:45 -05:00
containers_start.go enable pod_create remote integration tests 2020-05-20 14:57:30 -05:00
containers_stats.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
containers_stop.go enable pod_create remote integration tests 2020-05-20 14:57:30 -05:00
containers_top.go Refactor handler packages 2020-03-10 08:03:41 -07:00
containers_unpause.go Refactor handler packages 2020-03-10 08:03:41 -07:00
events.go Add streaming ability to endpoint 2020-05-27 12:16:39 -05:00
exec.go Enable detached exec for remote 2020-06-02 15:30:42 -04:00
images.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
images_build.go v2 podman-remote build 2020-05-21 14:22:11 -05:00
images_history.go V2 podman command 2020-03-18 16:41:12 -07:00
images_push.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
images_remove.go V2 podman image rm | podman rmi [IMAGE] 2020-03-25 17:54:14 -07:00
images_save.go Refactor handler packages 2020-03-10 08:03:41 -07:00
images_search.go podmanV2: implement search 2020-04-09 13:05:19 +02:00
images_tag.go Refactor handler packages 2020-03-10 08:03:41 -07:00
info.go Update podman to use containers.conf 2020-04-20 16:11:36 -04:00
networks.go Fix builds on 32 bit arches 2020-05-27 09:52:36 -04:00
ping.go V2 API Version Support 2020-05-20 10:21:30 -07:00
resize.go Add bindings for exec and enable attached remote 2020-06-01 17:24:00 -04:00
swagger.go network compatibility endpoints for API 2020-05-22 13:48:52 -05:00
system.go Refactor handler packages 2020-03-10 08:03:41 -07:00
types.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
unsupported.go podman v2 remove bloat v2 2020-04-16 12:04:46 -05:00
version.go V2 API Version Support 2020-05-20 10:21:30 -07:00