This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Ctrl+C terminate attached container but not docker compose
execution
#1447
Labels
Description
Hello folks,
It appears that compose-cli (
docker compose
) do not terminate execution when hitting Ctrl+C on an attached controller. This behavior is not reproducible compared todocker-compose
exact same setup.I originally thought this could be an issue with WSL2 (not using Docker Desktop for Windows) so decided to compare with a real Ubuntu 20.04 machine and the issue is the same.
Hope was able to provide all the details, but please let me know if additional tests are required.
Thank you for creating Docker and this new compose CLI!!! ❤️ ❤️ ❤️
Cheers.
Steps to reproduce the issue:
docker-compose.yml
file withsleep infinity
container (see below)docker compose up
and wait for Attaching notificationCtrl+C
and wait for Stopped notificationDescribe the results you received:
Notice that command does not exit (and requires
kill
)Describe the results you expected:
Expected the process to terminate in similar way as
docker-compose
execution.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker context show
:You can also run
docker context inspect context-name
to give us more details but don't forget to remove sensitive content.Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
Output of
docker-compose version
:Content of
docker-compose.yml
:docker events
fordocker-compose up
:docker events
fordocker compose up
:The text was updated successfully, but these errors were encountered: