Closed
Description
When you pass uv run
as the command in compose.yml
, you can't gracefully stop the process by pressing Ctrl+C. I'm guessing it's because it's not passing sigterm to its children.
Steps to reproduce:
- Clone https://github.com/astral-sh/uv-docker-example
- Open
compose.yml
and addcommand: uv run fastapi dev --host 0.0.0.0 src/uv_docker_example
docker compose build
docker compose up
- Press Ctrl+C
You will have to wait 10 seconds until docker forcibly sigkills the process.
Then:
- remove
uv run
from the command:command: fastapi dev --host 0.0.0.0 src/uv_docker_example
docker compose up
- Press Ctrl+C
Compose will shutdown the process almost instantaneously.
uv 0.3.3 (according to uv-docker-example's Dockerfile)