DockerCLI/e2e
Laura Brehm 66aa0f672c
attach: don't return context cancelled error
In 3f0d90a2a9 we introduced a global
signal handler and made sure all the contexts passed into command
execution get (appropriately) cancelled when we get a SIGINT.

Due to that change, and how we use this context during `docker attach`,
we started to return the context cancelation error when a user signals
the running `docker attach`.

Since this is the intended behavior, we shouldn't return an error, so
this commit adds checks to ignore this specific error in this case.

Also adds a regression test.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2024-07-25 00:49:33 +01:00
..
cli-plugins cli: FlagErrorFunc: don't print long usage output for invalid flags 2024-07-17 13:22:31 +02:00
container attach: don't return context cancelled error 2024-07-25 00:49:33 +01:00
context cli/config: add EnvOverrideConfigDir const 2023-06-28 13:20:29 +02:00
global feat: standardize error for prompt 2024-03-26 14:11:55 +01:00
image linting: fmt.Sprintf can be replaced with string concatenation (perfsprint) 2024-06-10 21:19:32 +02:00
internal/fixtures update golangci-lint to v1.54.2 2023-08-29 14:21:47 +02:00
plugin linting: fmt.Sprintf can be replaced with string concatenation (perfsprint) 2024-06-10 21:19:32 +02:00
stack Add support for --detach flag in stack deploy 2024-03-04 09:36:36 +01:00
system bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
testdata update to go1.21.12 2024-07-03 10:59:37 +02:00
testutils feat: standardize error for prompt 2024-03-26 14:11:55 +01:00
trust linting: fmt.Sprintf can be replaced with string concatenation (perfsprint) 2024-06-10 21:19:32 +02:00
compose-env.connhelper-ssh.yaml Cleanup of dockerfiles, compose files and env vars 2024-02-13 13:32:45 +00:00
compose-env.experimental.yaml e2e: update to use compose v2, and don't depend on distro-packages 2023-09-26 12:20:01 +02:00
compose-env.yaml Updated engine versions in e2e text matrix 2024-05-16 11:04:30 +00:00