Skip to content

Pull latest tag by default#716

Merged
dnephin merged 1 commit intodocker:masterfrom
bfirsh:pull-latest-tag-by-default
Dec 11, 2014
Merged

Pull latest tag by default#716
dnephin merged 1 commit intodocker:masterfrom
bfirsh:pull-latest-tag-by-default

Conversation

@bfirsh
Copy link
Copy Markdown

@bfirsh bfirsh commented Dec 9, 2014

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]

@bfirsh
Copy link
Copy Markdown
Author

bfirsh commented Dec 9, 2014

Prompted by running out of disk space. Docker's standard library is enormous now.

@bfirsh bfirsh added this to the 1.1.0 milestone Dec 9, 2014
Comment thread fig/service.py Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This _get_container_create_options() is already doing a lot of work unrelated to creating the image name with a tag (none of which is used by pull()). Maybe this could be a new function get_image_name(), called from both pull and _get_container_create_options ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

@bfirsh bfirsh force-pushed the pull-latest-tag-by-default branch from c353ab1 to 309c4b1 Compare December 11, 2014 20:01
@bfirsh
Copy link
Copy Markdown
Author

bfirsh commented Dec 11, 2014

@dnephin Pushed updated version with get_image_name().

@bfirsh bfirsh force-pushed the pull-latest-tag-by-default branch from 309c4b1 to f75d5c3 Compare December 11, 2014 20:03
Comment thread fig/service.py Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This return seems out of place, shouldn't it still return the container_options ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoopsy daisy

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]>
@bfirsh bfirsh force-pushed the pull-latest-tag-by-default branch from f75d5c3 to 8ebec9a Compare December 11, 2014 20:37
@dnephin
Copy link
Copy Markdown

dnephin commented Dec 11, 2014

LGTM!

dnephin added a commit that referenced this pull request Dec 11, 2014
@dnephin dnephin merged commit 64762c9 into docker:master Dec 11, 2014
@bfirsh bfirsh deleted the pull-latest-tag-by-default branch December 11, 2014 21:33
@bfirsh bfirsh mentioned this pull request Dec 15, 2014
4 tasks
yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
Pull latest tag by default
Signed-off-by: Yuval Kohavi <[email protected]>
infraAnchor pushed a commit to infraAnchor/compose that referenced this pull request Mar 6, 2026
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.

2 participants