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
make docker build -rm=true default #4292
make docker build -rm=true default #4292
Conversation
+9001 yesplz |
Definitely needs a docs update to make this very clear. Otherwise +1. |
Wasn't sure if there was a doc for this or not. |
The cli.rst doc for sure and perhaps the Docker build docs. |
When -rm is passed in, if the default is true does it set it to false or would it have to be |
Updated docs. |
Docs LGTM /cc @metalivedev @SvenDowideit |
@@ -208,7 +208,7 @@ Examples: | |||
|
|||
.. code-block:: bash | |||
|
|||
$ sudo docker build --rm . | |||
$ sudo docker build --rm=true . |
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.
Hmm, if "true" becomes the default, shouldn't we instead just remove --rm
from the invocation, so our examples get even simpler?
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.
I thought about that...
But the doc is showing off what -rm does, not that it's default.
But either way is fine.
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.
Ahh ok, that makes sense. :)
@cpuguy83 would you be willing to add the following patch to this, too? :) diff --git a/Makefile b/Makefile
index e124d1d..e15ed35 100644
--- a/Makefile
+++ b/Makefile
@@ -32,10 +32,10 @@ shell: build
$(DOCKER_RUN_DOCKER) bash
build: bundles
- docker build -rm -t "$(DOCKER_IMAGE)" .
+ docker build -t "$(DOCKER_IMAGE)" .
docs-build:
- docker build -rm -t "$(DOCKER_DOCS_IMAGE)" docs
+ docker build -t "$(DOCKER_DOCS_IMAGE)" docs
bundles:
mkdir bundles (ie, remove |
LGTM - tho I think this needs to be in the Changelog to try to alert the old hands that life is different now |
Uh, the "run" lines in the Makefile still need -rm :) |
Whoops! See, you should have done a PR :) |
Fixed. |
:) LGTM |
@SvenDowideit Is this something I need to do or is there someone that maintains this? |
That's up to the release maintainer. :) |
LGTM /cc @vieux @unclejack |
LGTM |
It's ok for me On Mon, Feb 24, 2014 at 11:26 AM, Michael Crosby
Victor VIEUX |
If we're going to make it the default, I think we should hide it from any docs and examples other than the most advanced. Reduce the cognitive load. Otherwise I agree with the change. |
@cpuguy83 I'd be thrilled if you updated the docs :) but if you don't want to, I'm willing to do it in a separate PR |
I made the doc change, let me know if this is sufficient. |
layers that were used to create each image layer. Doing so has no impact on | ||
the image build cache. | ||
If you wish to keep the intermediate containers after the build is complete, | ||
you must use ``--rm=false``. This has no affect on the build cache. |
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.
It should be effect
here.
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.
Ugh... grammar... I still want to say this should be affect.
If -rm affected the build the result would be an effect ?
Or perhaps "This has no impact on the build cache"
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.
It should be something like This doesn't affect the build cache.
if you want to stick to using affect.
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.
Ok, it's updated.
Thanks.
Docker-DCO-1.1-Signed-off-by: Brian Goff <cpuguy83@gmail.com> (github: cpuguy83)
LGTM |
make docker build -rm=true default
Fixes part of #4291
Docker-DCO-1.1-Signed-off-by: Brian Goff cpuguy83@gmail.com (github: cpuguy83)