nodejs / docker-node

Official Docker Image for Node.js :whale: :turtle: :rocket:
https://hub.docker.com/_/node/
MIT License
8.13k stars 1.95k forks source link

No node:20.14.0-alpine for linux/arm64/v8 #2092

Closed pasha-vuiko closed 1 month ago

pasha-vuiko commented 1 month ago

Environment

Expected Behavior

I should be able to pull the image for my platform, the image should be available for linux/arm64/v8

Current Behavior

When I run docker pull node:20.14.0-alpine I receive the error: no matching manifest for linux/arm64/v8 in the manifest list entries. So I tried to run docker manifest inspect node:20.14.0-alpine and here is the output:

{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:389ae25ab30b4739d863c6116a686901ae99e9ccaaed524a0db9481531266f82",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      }
   ]
}

as we see we are lacking a lot of platforms not supported including linux/arm64/v8. In comparison here is the output for the previous node.js alpine image verision:

docker manifest inspect node:20.13.1-alpine

{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:db4b1d98b5a92263f2b9221c4d7930ce6b02f9834926c8b6174bfed2913cea16",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:4b8116ed9fe70019729e20adaf9e65c2af34943b665d4430dd1eb54bd861968d",
         "platform": {
            "architecture": "arm",
            "os": "linux",
            "variant": "v6"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:114a0aa0c4ede1ddf976570ec6dcabab2c1c3e3a33d38ef01aa6467f71ee2768",
         "platform": {
            "architecture": "arm",
            "os": "linux",
            "variant": "v7"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:9af2f86dd6d39e527f3b46691a06e882a478fc6d004859b2383b73af71357394",
         "platform": {
            "architecture": "arm64",
            "os": "linux",
            "variant": "v8"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:4b3948600688bde342e4a10458d70c292fb244be70f79bdc97f643d9f235a42c",
         "platform": {
            "architecture": "ppc64le",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 1158,
         "digest": "sha256:abc6f14e86ed40bf2be842a78287092f7f840b7db29e54d6059d636c05677243",
         "platform": {
            "architecture": "s390x",
            "os": "linux"
         }
      }
   ]
}

What am I missing?

Possible Solution

Add support for the other platforms

Steps to Reproduce

Try to pull node:20.14.0-alpine on Mac

Additional Information

nschonni commented 1 month ago

https://github.com/nodejs/docker-node/issues/2091#issuecomment-2137984131