Skip to content

docker-compose run should terminate container on SIGHUP #4909

@fsateler

Description

@fsateler

When running docker-compose run --rm $service $cmd, the expectation is that the container will be terminated when docker-compose terminates. If docker-compose terminates due to SIGHUP (which can happen for example when docker-compose is run in a remote server and the ssh connection is terminated), it will leave the container running. It should stop and remove (if --rm was passed) the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions