Replace ocispec.MediaTypeImageManifest with manifest.MediaType#3904
Replace ocispec.MediaTypeImageManifest with manifest.MediaType#3904dmcgowan merged 3 commits intocontainerd:masterfrom
Conversation
Signed-off-by: Xiaodong Ye <[email protected]>
|
Build succeeded.
|
Signed-off-by: Xiaodong Ye <[email protected]>
|
Build succeeded.
|
Signed-off-by: Xiaodong Ye <[email protected]>
|
Build succeeded.
|
Codecov Report
@@ Coverage Diff @@
## master #3904 +/- ##
=======================================
Coverage 42.47% 42.47%
=======================================
Files 130 130
Lines 14716 14716
=======================================
Hits 6251 6251
Misses 7544 7544
Partials 921 921
Continue to review full report at Codecov.
|
|
Import a DockerV2.1 image which contains I think this should be caused by the mediatype is mismatch with the mediatype in the file. @crosbymichael I have closed #3900 |
|
The change is LGTM. @yeahdongcn could you please provide the log in registry side? Thanks |
|
|
Checked docker/distribution and the registry server will use http content type header to choose the validator for manifest https://github.com/docker/distribution/blob/master/manifests.go#L106. The content-type should be consistent with file. |
Signed-off-by: Xiaodong Ye [email protected]
Import a tar with
manifest.json,ctr image lsreturns incorrectTYPE.