make docker pull only the latest tag by default#7759
make docker pull only the latest tag by default#7759crosbymichael merged 3 commits intomoby:masterfrom
Conversation
|
ping @dmp42 |
0db5b83 to
cbbb1ab
Compare
|
LGTM |
1 similar comment
|
LGTM |
|
@unclejack can you rebase? |
api/client/commands.go
Outdated
There was a problem hiding this comment.
why do we always set the tag to "" ?
There was a problem hiding this comment.
yes, so why not remove this line ?
There was a problem hiding this comment.
@vieux I was under the impression it's still needed in the API. I'll remove it.
|
yup :) needs Docs |
|
@unclejack I've made you unclejack#5 I guess we need something in the API too? |
|
@SvenDowideit Thank you! I've merged the docs changes you've made into this branch. Those who use the API can already choose to append |
4c18872 to
b7b8467
Compare
|
@crosbymichael @tiborvass @vieux This PR is ready for code review. @fredlf @jamtur01 Can you take a look at this PR, please? Thanks to @SvenDowideit, it now has docs. |
There was a problem hiding this comment.
I think we should omit this line. It belongs in release notes, not reference, IMHO. It won't be relevant after a couple of releases.
|
Docs LGTM if we omit the line I commented on. |
|
I've gotta say, I really dislike this change a lot, but I understand the |
|
@tianon Could you explain why you dislike the change, please? Most users really want to use the latest tag or don't care much about this and they end up using bandwidth. |
|
Well, right now, when I "docker pull xyz", it's completely unambiguous what |
|
As a user I'm +1 on this. It seems a safer default. I think people quickly get to the point where they understand the distinction @tianon is talking about, but I'd disagree that the interpretation that the normal users intent is to have the entire collection of tags. Sometimes you just get unpleasantly surprised by how big something is, or how many tags they have. For the new users, seeing a huge amount of stuff coming down the pipe when they just want to get started is a turnoff. It isn't helped by the fact that if the ctrl+c it, the client doesn't always gracefully reset. |
There was a problem hiding this comment.
Shouldn't that read --all-tags instead of --all-images?
There was a problem hiding this comment.
@dmp42 You're right, I'll change this with the next update. I need to add some changes for docker builld.
|
Just out of curiosity, do we get a good error message if we do something |
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <[email protected]> (github: unclejack)
cc1ebfe to
6ba5d67
Compare
Docker-DCO-1.1-Signed-off-by: SvenDowideit <[email protected]> (github: SvenDowideit)
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <[email protected]> (github: unclejack)
|
@tianon Yes, you'll get an error saying tag can't be used with --all-tags/-a. I've updated the PR to make I don't think the @fredlf I've removed that line. @crosbymichael @jfrazelle @LK4D4 @tiborvass @vieux This should be ready for review. Please let me know if there's anything you'd like to change. |
|
Thanks for clarifying, unclejack. :) I'm +1 on consistency, and I'll get used to the new interface. :) |
|
LGTM |
👍 thanks unclejack ! |
|
Docs LGTM |
1 similar comment
|
Docs LGTM |
|
Design LGTM |
|
is it possible to add a test for this? or is it too complicated at this point to make sure the latest is always the latest, etc |
|
@jfrazelle I think we can do this if we set up a mock registry to pull from it, but I think it's out of scope of this PR. |
|
makes sense LGTM On Mon, Sep 8, 2014 at 10:56 AM, unclejack [email protected] wrote:
|
|
LGTM |
1 similar comment
|
LGTM |
make docker pull only the latest tag by default
This was changed in Docker recently: moby/moby#7759 This means we aren't pulling loads of tags when we only use the latest. Signed-off-by: Ben Firshman <[email protected]>
This was changed in Docker recently: moby/moby#7759 This means we aren't pulling loads of tags when we only use the latest. Signed-off-by: Ben Firshman <[email protected]>
This was changed in Docker recently: moby/moby#7759 This means we aren't pulling loads of tags when we only use the latest. Signed-off-by: Ben Firshman <[email protected]>
This was changed in Docker recently: moby/moby#7759 This means we aren't pulling loads of tags when we only use the latest. Signed-off-by: Ben Firshman <[email protected]>
This was changed in Docker recently: moby/moby#7759 This means we aren't pulling loads of tags when we only use the latest. Signed-off-by: Ben Firshman <[email protected]> Signed-off-by: Yuval Kohavi <[email protected]>
This PR changes
docker pullto add a flag called--all-tags(-afor the short version) to make Docker pull only the latest tag of a repository by default.These changes are limited to the Docker CLI. The API and the daemon aren't modified for this change.
This will help speed up pulls. This PR is also removing the --tag flag because it doesn't make sense to keep it around any more.
The docs have been added, thanks to @SvenDowideit.