TritonDataCenter / node-docker-registry-client

node.js client for the docker registry
Mozilla Public License 2.0
64 stars 33 forks source link

getManifest fails for OCI type images #43

Closed MikeMcC399 closed 1 month ago

MikeMcC399 commented 3 months ago

Issue

Executing the following command

node examples/v2/getManifest.js ubuntu:jammy-20240627.1

results in the error message:

getManifest: error: unsupported schema version 2 in ubuntu:jammy-20240627.1 manifest

Same for

node examples/v2/getManifest.js ubuntu
node examples/v2/getManifest.js node

Steps to reproduce

git clone https://github.com/TritonDataCenter/node-docker-registry-client
cd node-docker-registry-client
npm install
node examples/v2/getManifest.js ubuntu:jammy-20240627.1

Environment

docker-registry-client 3.4.0 Ubuntu 22.04.4 LTS Node.js v20.15.10

Other

Executing the command for an older Ubuntu image with docker content-type works correctly:

node examples/v2/getManifest.js ubuntu:jammy-20221130

"content-type": "application/vnd.docker.distribution.manifest.v1+prettyjws",

or for

node examples/v2/getManifest.js fedora
MikeMcC399 commented 1 month ago

Closing, as the repo https://github.com/cypress-io/docker-image-not-found using this function was archived on Jul 8, 2024 and it would therefore not profit from any fix here.

Also, since there has been no response to this issue during the last two months I assume that there is little or no interest elsewhere in resolving the issue.