-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid upgrading base OS image during the life of a major version of Node.js #1918
Comments
Same issue, use
|
I don't think it's practical to pin the version because the OS and Node version don't line up. There is an inherent risk to using shortcut tags and it's a balancing act between stability and security. For example, we had pinned to a major node version and specific OS version which meant we weren't getting security updates until we bumped to the new OS version. |
I think this causes an unnecessary problem. In the docker node v20.3 image, we have broken a large number of users (e.g. Ubuntu LTS users). From a user's perspective, this kind of breakage is unexpected in what looks like a server minor update. |
Problem
The update of the base OS image used for
node:18
from Debian 11 to 12 has caused issues for various people:Solution
Keep the same base OS image during the entire life of any major version of Node.js and only upgrade it for future major versions.
Alternatives to Consider
Teach the community to specify the name of the base OS in their Dockerfiles, but I'm afraid it's too late for that. I don't remember seeing any documentation that recommends to do it.
The text was updated successfully, but these errors were encountered: