Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nydusify: fix unnecessary manifest index when copy one platform image
When use the command to copy the image with specified one platform: ``` nydusify copy --platform linux/amd64 --source nginx --target localhost:5000/nginx ``` We found the target image is a manifest index format like: ``` { "schemaVersion": 2, "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", "manifests": [ { "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "digest": "sha256:d2e65182b5fd330470eca9b8e23e8a1a0d87cc9b820eb1fb3f034bf8248d37ee", "size": 1778, "platform": { "architecture": "amd64", "os": "linux" } } ] } ``` This can be a bit strange, in fact just the manifest is enough, the patch improves this. Signed-off-by: Yan Song <yansong.ys@antgroup.com>
- Loading branch information