Skip to content

[BUG] compose build does not abort build on SIGTERM #10634

Description

@fho

Description

When a "docker compose build" process receives a TERM signal, it ignores it and continues running.
I expect "docker compose build" to terminate gracefully.
This works when pressing ctrl+c.

When sending the INT signal, "docker compose build" also does not terminate.
This might be the same bug then #10586.

Steps To Reproduce

git clone https://github.com/ndeloof/truc.git
cd truc
(export BUILDKIT_PROGRESS=plain; docker compose -f compose.yml build --no-cache >&2 & (sleep 0.2 && pkill -fe 'docker compose' && echo "KILLED IT"))

Compose Version

Docker Compose version v2.18.1 and 
Docker Compose version v2.17.3

Docker Environment

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions