You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
This looks to be an oversights, and might be a "fun one" to work around; we want plugins to have the opportunity to do a graceful shutdown (CTRL-C to let the plugin to finish work before terminating), it looks like there's some exceptions to this rule.
❓ I noticed this on the docker buildx prune / docker builder prune, and I think this handling is specific to buildx, soo perhaps that's the only case this happens, but maybe other plugins have the same handling;
Expected behaviour
I'd expect the command to be cancelled.
For comparison, running other prune commands will terminate immediately when pressing CTRL-C;
$ docker volume prune
WARNING! This will remove anonymous local volumes not used by at least one container.
Are you sure you want to continue? [y/N] ^C
$
Actual behaviour
The command does not cancel when pressing CTRL-C, requiring me to CTRL-C 3 times to forcefully terminate;
$ docker buildx prune
WARNING! This will remove all dangling build cache. Are you sure you want to continue? [y/N] ^C^C^CERROR: got 3 SIGTERM/SIGINTs, forcing shutdown
$
Also verified the same happens without the "compose-cli" wrapper;
$ com.docker.cli buildx prune
WARNING! This will remove all dangling build cache. Are you sure you want to continue? [y/N] ^C^C^CERROR: got 3 SIGTERM/SIGINTs, forcing shutdown
Note that pressing N (don't prune) does work as expected, and terminates the CLI (and plugin);
$ docker buildx prune
WARNING! This will remove all dangling build cache. Are you sure you want to continue? [y/N] N
Contributing guidelines
I've found a bug and checked that ...
Description
This looks to be an oversights, and might be a "fun one" to work around; we want plugins to have the opportunity to do a graceful shutdown (
CTRL-C
to let the plugin to finish work before terminating), it looks like there's some exceptions to this rule.❓ I noticed this on the
docker buildx prune
/docker builder prune
, and I think this handling is specific tobuildx
, soo perhaps that's the only case this happens, but maybe other plugins have the same handling;Expected behaviour
I'd expect the command to be cancelled.
For comparison, running other prune commands will terminate immediately when pressing
CTRL-C
;Actual behaviour
The command does not cancel when pressing
CTRL-C
, requiring me toCTRL-C
3 times to forcefully terminate;Also verified the same happens without the "compose-cli" wrapper;
Note that pressing
N
(don't prune) does work as expected, and terminates the CLI (and plugin);Buildx version
github.com/docker/buildx v0.12.1-desktop.4 6996841df2f61988c2794d84d33205368f96c317
Docker info
Builders list
Configuration
not relevant
Build logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: