-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CTRL-C does not end compose logs -f #8880
Comments
ouch, this is a regression - seems to me I've fixed this at least twice in the past :P |
I can confirm that to exit from a
|
I wouldn't mind having to press CTRL^C multiple times for the time being, what bothers me the most is the stale process that is left behind as described in #8749. trap cleanup EXIT
function cleanup() {
if [ -n "$pid" ]; then
pkill -P $pid --signal 9
kill -9 $pid
fi
}
docker compose logs --tail="${nr_lines}" ${opts[@]} ${sources} 2>&1 &
pid=$!
wait $pid |
CTRL^C multiple times just kill the client. If you're running on Docker Desktop, could you please try running |
On Arch Linux "docker-compose logs -f" cannot be exited with multiple CTRL-C but "docker compose logs -f" can be exited with three CTRL-C. |
Using |
Same issue here on both Docker Desktop (Mac M1) and Docker installed on Ubuntu 20.04.3 LTS. (VM)
|
Thanks for the fix, this bug was driving me insane. Any ETA on when this will be released? |
I have the same issues with docker logs -f .... (without the compose). BUT! com.docker.cli works with a Ctrl-C. BUT! What about Ctrl-Z ? When I do a docker logs -f ... it kind of works with a Ctrl-C, but when I try to do a Ctrl-Z before, any Ctrl-C after that will fail. cmd.docker.cli is an improvement over this, but still, I would like to use full job control, with Ctrl-Z backgrounding the process. WTF is going on here? |
Fyi i'm still having this issue... CTRL^C multiple times does not work either, neither does CTRL^Z Docker Compose version v2.5.0 |
Not sure if this is related, but I just started seeing this problem when trying to exit a regular |
I'm seeing this same bug (i.e. after starting containers using
|
Does |
No, it does not |
Having the same issue here with both |
same issue |
This has been fixed in 2.14.2, see #10104 |
@ndeloof thanks, I can confirm that the issue is fixed. |
👍 |
lol, nope.
|
CTRL-C does not end compose logs -f
This started with compose 2.1.0
Steps to reproduce the issue:
whereas docker logs -f containername works as expected
Describe the results you received:
Command can only be killed
Describe the results you expected:
Return to shell
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker compose version
:Output of
docker info
:Additional environment details:
The text was updated successfully, but these errors were encountered: