podman/pkg/api/server
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
..
docs.go APIv2 review corrections #3 2020-01-25 15:09:09 -06:00
handler_api.go Refactor service idle support 2020-04-13 08:11:36 -07:00
listener_api.go Add service endpoint 2020-01-21 16:35:45 -06:00
register_archive.go v2 copy endpoints 2020-05-26 12:04:20 -05:00
register_auth.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_containers.go V2 Implement terminal handling in bindings attach 2020-05-18 11:21:06 -07:00
register_distribution.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_events.go Add streaming ability to endpoint 2020-05-27 12:16:39 -05:00
register_exec.go Enable detached exec for remote 2020-06-02 15:30:42 -04:00
register_generate.go add {generate,play} kube 2020-05-06 17:08:22 +02:00
register_healthcheck.go add apiv2 healthcheck code 2020-03-13 07:43:12 -05:00
register_images.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
register_info.go refactor info 2020-04-06 12:45:42 -05:00
register_manifest.go swagger: more consistency fixes 2020-03-18 13:33:07 -06:00
register_monitor.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_networks.go network compatibility endpoints for API 2020-05-22 13:48:52 -05:00
register_ping.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_play.go add {generate,play} kube 2020-05-06 17:08:22 +02:00
register_plugins.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_pods.go implement pod stats 2020-04-27 12:00:35 +02:00
register_swagger.go serve swagger when present 2020-03-18 14:34:14 -05:00
register_swarm.go Register handlers without version to align with docker API 2020-03-05 22:28:22 +00:00
register_system.go Removes remote system reset functionality. skip e2e test for remote. 2020-05-22 07:49:55 -04:00
register_version.go V2 Impliment tunnelled podman version 2020-05-08 15:57:26 -07:00
register_volumes.go podmanv2 volumes 2020-03-24 16:03:49 -05:00
server.go v2 copy endpoints 2020-05-26 12:04:20 -05:00
swagger.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00