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

Use docker run --rm + docker kill instead of docker rm #1014

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bjorn3
Copy link
Collaborator

@bjorn3 bjorn3 commented Mar 3, 2025

Unlike what the comment on docker rm suggested, previously we would actually block on docker rm completing. Using docker run --rm + docker kill only blocks on killing the container while running the slow cleanup in the background. This almost halfs the time it takes to run the compliance tests with podman on Linux. In addition if you kill the compliance test executable itself, the containers will now be gone entirely as soon as you kill the containers rather than leaving data on the disk.

Unlike what the comment on docker rm suggested, previously we would
actually block on docker rm completing. Using docker run --rm +
docker kill only blocks on killing the container while running the slow
cleanup in the background. This almost halfs the time it takes to run
the compliance tests with podman on Linux. In addition if you kill the
compliance test executable itself, the containers will now be gone
entirely as soon as you kill the containers rather than leaving data on
the disk.
@bjorn3 bjorn3 requested a review from squell March 3, 2025 11:30
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.

1 participant