-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
added --rm flag to docker run #1753
base: main
Are you sure you want to change the base?
Conversation
Thanks Mike! 🙏 The reason we like having this be customizable is that it is useful in some cases to be able debug the container (if the build failed for example) Though appreciate the issues around leftover containers eating up space (and forgetting to clean those). Struggle with the same issues 😅 Wonder if we can find a middle ground For example, what if we add this to
...to something like this... DOCKER_RUN_ARGS="${CONDA_FORGE_DOCKER_RUN_ARGS:---rm}" |
Perfect! I think that covers the (at least for me) common case of wanting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1 on this change. This requires me to set CONDA_FORGE_DOCKER_RUN_ARGS
to something for me to debug which I'll probably forget and will have to waste time running again.
What would be another approach that would be better? |
I'm not even sure if setting For example, it looks like when I set
But post build, I almost free 1gb of space running
So I am fine with taking another approach (and it seems like a different approach is needed anyway?) to reduce the disk space usage from |
Checklist
news
entryResolves #909
I spent an evening do a lot of
python build-locally.py
and blew through ~1.5TB of disk space. I am not sure if there are any downsides to passing in--rm
by default. When making this PR I noticed that I could setCONDA_FORGE_DOCKER_RUN_ARGS
https://github.com/conda-forge/conda-smithy/blob/main/conda_smithy/templates/run_docker_build.sh.tmpl#L67-L68 which is nice but I think that is something easy to forget.