Closed pettijohn closed 1 year ago
The best way I've found to quit the dev server is to run docker stop <container id>
or docker kill <container id>
. Interestingly, docker kill --signal=SIGINT <container id>
doesn't work even though I think that's the right signal per this old issue https://github.com/withastro/snowpack/pull/380
Needed to run docker run
with --init
to properly handle CTRL+C and other signals
Quick checklist
What package manager are you using?
esnext
What operating system are you using?
Docker on Ubuntu on Windows 11 WSL2
Describe the bug
I cannot kill the dev server. I have tried CTRL+C repeatedly, CTRL+Break, and everything else I can think of. I've tried using Windows Terminal and Windows Console Host to start the dev server. I don't have snowpack or node installed locally and am running in a Docker container. CTRL+Break seems to kill Bash.
docker run -it -v=${PWD}:/app -p=8080:8080 snowpack dev
I briefly see
^C
when I hit the key combo.Dockerfile:
Steps to reproduce
docker build . -t snowpack
with Dockerfile abovedocker run -it -v=${PWD}:/app -p=8080:8080 snowpack dev
Link to minimal reproducible example (optional)
No response