[19.03 backport] Do not disable sig-proxy when using a TTY #2177
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
backport of:
This partially reverts moby/moby@e0b59ab (moby/moby#2426), and does not automatically disable proxying signals in TTY-mode
fixes moby/moby#28872 (docker client doesn't pass signals when a terminal is attached)
fixes moby/moby#3793 docker client not passing signals to dockerd
relates to:
docker exec
command will not terminate the spawned process moby/moby#9098 Killdocker exec
command will not terminate the spawned processdocker exec
case; it looks like there's no API to kill an exec'd process, so there's no signal-proxy for this yetBefore this change:
Start a container with a TTY in one shell:
then, in another shell, kill the docker cli:
Notice that the CLI was killed, but the signal not forwarded to the container;
the container continues running
After this change:
Start a container with a TTY in one shell:
then, in another shell, kill the docker cli:
Verify that the signal was forwarded to the container, and the container exited
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)