Skip to content

uv run doesn't pass signals to children #6724

Closed
@overfl0

Description

@overfl0

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:

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions