-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
dockerbuild pulls all images rather than :latest #9104
Conversation
A FROM foo/bar in a Dockerfile will result in docker pulling all tags in foo/bar, rather than just foo/bar:latest. Default to :latest in the dockerbuilder.
@csrwng as well |
[test] |
repository, _ := docker.ParseRepositoryTag(from) | ||
repository, tag := docker.ParseRepositoryTag(from) | ||
if len(tag) == 0 { | ||
tag = "latest" |
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.
imageapi.DefaultImageTag?
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.
This package can't take any dependencies on other OpenShift code, because we're going to move this out of the repo.
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.
sgtm
apart from minor suggestion, LGTM |
[test] |
Evaluated for origin test up to 020d51f |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4393/) |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4393/) (Image: devenv-rhel7_4305) |
Evaluated for origin merge up to 020d51f |
lgtm |
A FROM foo/bar in a Dockerfile will result in docker pulling all tags in
foo/bar, rather than just foo/bar:latest. Default to :latest in the
dockerbuilder.
@mfojtik review please, hit this while fixing other things