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

All images are ubuntu jammy #2020

Closed leithouse closed 5 months ago

leithouse commented 5 months ago

Environment

Expected Behavior

I expect os image tags to be running the kernel associated with that os.

Current Behavior

OS image tags are running ubuntu jammy, but have appropriate os at /etc/os-release

Possible Solution

Rebuild the images

Steps to Reproduce

// /tmp/foo.js
const { readFileSync } = require('fs'),
      { execSync } = require('child_process');

console.log(readFileSync('/etc/os-release','utf8'));
console.log( execSync('uname -a').toString('utf8'));
$ docker run -v /tmp/foo.js:/tmp/foo.js node:20-buster /tmp/foo.js                                                                                                                               
PRETTY_NAME="Debian GNU/Linux 10 (buster)"                                                                                                                                                                         
NAME="Debian GNU/Linux"                                                                                                                                                                                            
VERSION_ID="10"                                                                                                                                                                                                    
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Linux 8f5e79626a59 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 GNU/Linux
$ docker run -v /tmp/foo.js:/tmp/foo.js node:18-buster /tmp/foo.js                      
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Linux 692d0a6b9fe0 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 GNU/Linux
$ docker run -v /tmp/foo.js:/tmp/foo.js node:16-buster /tmp/foo.js                      
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Linux e2eabf9d7bec 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 GNU/Linux
$ docker run -v /tmp/foo.js:/tmp/foo.js node:14-buster /tmp/foo.js                      
Unable to find image 'node:14-buster' locally
14-buster: Pulling from library/node
Digest: sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa
Status: Downloaded newer image for node:14-buster
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Linux 9fc7ee6388ef 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 GNU/Linux
$ docker run -v /tmp/foo.js:/tmp/foo.js node:20-bookworm /tmp/foo.js
Unable to find image 'node:20-bookworm' locally
20-bookworm: Pulling from library/node
Digest: sha256:ffebb4405810c92d267a764b21975fb2d96772e41877248a37bf3abaa0d3b590
Status: Downloaded newer image for node:20-bookworm
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Linux 2b65b4e49343 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 GNU/Linux
$ docker run -v /tmp/foo.js:/tmp/foo.js node:20-alpine /tmp/foo.js
Unable to find image 'node:20-alpine' locally
20-alpine: Pulling from library/node
Digest: sha256:8e6a472eb9742f4f486ca9ef13321b7fc2e54f2f60814f339eeda2aff3037573
Status: Downloaded newer image for node:20-alpine
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19.0
PRETTY_NAME="Alpine Linux v3.19"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Linux 908c99aa790b 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 Linux