0

I have dockerized my Symfony build tools and so I try to run assetic:watch:

docker run -ti build-tool:latest ./bin/console assetic:watch

This works fine until I want to exit. Ctrl-C does nothing for me and I need to use docker stop <containerid> to make it stop.

Is there a way of getting the container to recognize Ctrl-C as a way of killing the currently running command?

yivi
  • 42,438
  • 18
  • 116
  • 138
oligofren
  • 20,744
  • 16
  • 93
  • 180
  • Have you tried `docker attach ` from another terminal and then stopping the container with Ctrl-C ? – Niloct Oct 14 '21 at 11:27
  • Does the main process respond to Ctrl-C as you expect? Maybe it terminates on another signal? – Maroun Oct 14 '21 at 11:28
  • Also [this one](https://stackoverflow.com/questions/41097652/how-to-fix-ctrlc-inside-a-docker-container). – yivi Oct 14 '21 at 11:31

0 Answers0