Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sigint should kill the running container #186

Merged
merged 1 commit into from
Mar 20, 2021
Merged

sigint should kill the running container #186

merged 1 commit into from
Mar 20, 2021

Conversation

nathants
Copy link
Contributor

What

Sending SIGINT to docker-slim should cause it to kill any running container before it exits. For example:

docker-slim build --http-probe=false --exec 'sleep 60; curl -L google.com' archlinux:latest

The above build command should not leave any containers running if it is interrupted.

Why

Sometimes in CI/CD we need to cancel a docker-slim build, and cannot leave running containers behind.

How Tested

Manually, with the above build command, ^C, and docker ps.

@kcq
Copy link
Member

kcq commented Mar 20, 2021

Nice!

@kcq kcq merged commit e25e85b into slimtoolkit:master Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants