-
Notifications
You must be signed in to change notification settings - Fork 73
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
Remove intermediate containers and name detect_os images #133
Conversation
23e80b2
to
dea58ac
Compare
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.
Cleaning intermediate containers sounds good as well as tagging the final one.
@@ -53,6 +53,13 @@ def detect_os(image_name, output_callback=None, nocache=False): | |||
|
|||
iof = StringIO((DETECTION_TEMPLATE % locals()).encode()) | |||
image_id = docker_build(fileobj = iof, output_callback=output_callback, nocache=nocache) | |||
image_id = docker_build( |
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.
The double invocation of docker_build
looks like an oversight?
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.
Oh indeed. Thanks.
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.
Removed.
dea58ac
to
a224076
Compare
Since the temporary images are tagged they would not be removed automatically by Actually the intention of #60 was more or less the opposite, i.e. to avoid having tags assigned to temporary, cached images, such that they are considered as "dangling" by docker's builtin cleanup tools. |
This commit partially reverts 80602eb (osrf#133). See osrf#133 (comment).
detect_os
creates a flurry of images and containers and dumps them on your system, with little introspectability as to what they are.This does a partial cleanup: