compose/cmd
Laura Brehm dcbf005fe4
up: gracefully teardown when command ctx cancelled
Previously, if a long-lived plugin process (such as
an execution of `compose up`) was running and then
detached from a terminal, signalling the parent CLI
process to exit would leave the plugin process behind.

To address this, changes were introduced on the CLI side
(see: https://github.com/docker/cli/pull/4599) to enable
the CLI to notify a running plugin process that it should
exit. This makes it so that, when the parent CLI process
is going to exit, the command context of the plugin
command being executed is cancelled.

This commit takes advantage of these changes by tapping into
the command context's done channel and using it to teardown
on an up.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2023-12-23 02:49:27 +00:00
..
cmdtrace otel: add args & flags to cli traces (#10974) 2023-09-07 16:04:36 -04:00
compatibility don't skip `compose` used as project name 2023-06-06 10:24:59 +02:00
compose up: gracefully teardown when command ctx cancelled 2023-12-23 02:49:27 +00:00
formatter Restore `Project` is ps json output 2023-11-24 10:46:33 +01:00
main.go otel: add args & flags to cli traces (#10974) 2023-09-07 16:04:36 -04:00