-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Docker registry v2.4.0 #8938
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
Docker registry v2.4.0 #8938
Conversation
20ff4e1 to
cdc92b8
Compare
|
You should bump all the storage driver dependencies as well. |
|
Aha, you have them in the |
| } | ||
| ] | ||
| }, | ||
| { |
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 seem unrelated.
|
yes. I made a mistake :( |
| case *schema1.SignedManifest: | ||
| case *schema2.DeserializedManifest: | ||
| default: | ||
| return "", fmt.Errorf("unrecognized manifest type %T", manifest) |
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.
Use ErrorCodeManifestInvalid?
| return distribution.ErrTagUnknown{Tag: tag} | ||
| } | ||
|
|
||
| if !t.repo.pullthrough { |
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.
Same question as above, who is authorized to make this call?
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.
Similar to the Tag() case. It can be invoked only from imageManifestHandler.DeleteImageManifest(). Not something client can call directly.
Since the docker/distribution has a lot of changes we have to adapt code to use it. * Adapt code to changes in the API. * Add support of Manifest Version 2 Schema 2.
e97eb27 to
f655085
Compare
|
@miminar @soltysh @smarterclayton I made changes according to your comments. Please review. |
f655085 to
7ab1b84
Compare
7ab1b84 to
a536ad1
Compare
|
Evaluated for origin test up to a536ad1 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5435/) |
|
Lgtm [merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5437/) (Image: devenv-rhel7_4466) |
|
Evaluated for origin merge up to a536ad1 |
|
🎉 |
|
omg :) Michal Fojtik On 26 June 2016 at 23:09:11, Michail Kargakis ([email protected])
|
|
🎉 |
|
Can you guys summarize the status of the fix to correct the broken
tests either here or @ me on which ever issue covers it? Want to have
one open so we can track its closure.
|
|
@smarterclayton Here's the the only issue I know of: #9540, PR with fix is #9582. There's also @liggitt's #9593 which I'll integrete into the former fix PR. |
|
Accepting schema 2 may break clients that do not support this schema (docker daemons < 1.10).
Apparently, we don't consider it a problem anymore [1].
[1] #13428
…On 16.3.2017 20:41, Vincent Batts wrote:
***@***.**** commented on this pull request.
------------------------------------------------------------------------------------------------------------------------
In pkg/dockerregistry/server/repositorymiddleware.go
<#8938 (comment)>:
> @@ -101,9 +104,16 @@ func newRepositoryWithClient(registryClient client.Interface, quotaClient kclien
}
}
- nameParts := strings.SplitN(repo.Name(), "/", 2)
+ allowSchema2 := true
blast from the past. We need version 2 schema 2 support. What is this going to break at this point?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#8938 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABaQk3_3nH24sbCo9m8vazq5uwiybIL-ks5rmZBdgaJpZM4IiLYZ>.
|
| imageConfig, err := b.Get(ctx, deserializedManifest.Config.Digest) | ||
| if err != nil { | ||
| glog.V(5).Infof("unable to access the image config using digest %q for repository %#v: %#v", d, repository, err) | ||
| if isDockerError(err, v2.ErrorCodeManifestUnknown) { |
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.
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 believe this should be v2.ErrorCodeBlobUnknown.
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.
Resolves #9491, closes #9284 (hopefully), closes #8596 (hopefully), closes #9122
@pweil- @mfojtik @soltysh @miminar ptal