docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

Breaking change in behavior on node:25-alpine docker image.

Open jesper-at-antirio opened this issue 2 months ago • 2 comments

We have got some type of changed behavior in two version of the docker image node:

Broken version: sha256:3f162243a45e30f6b20f80255779785789e142bec7b1d5d3b431f31d5b3610f6 (released 2025-11-13) Working version: sha256:7e467cc5aa91c87e94f93c4608cf234ca24aac3ec941f7f3db207367ccccdd11

In the broken version we get: ERROR in SecurityError: Cannot initialize local storage without a --localstorage-file path

jesper-at-antirio avatar Nov 13 '25 12:11 jesper-at-antirio

Could you provide more information about how to reproduce the failure? Perhaps a minimal reproducer and some environment information (e.g. docker version, uname -a).

The difference between the two images is just the NODE_VERSION=25.2.0: https://github.com/nodejs/docker-node/compare/bf78d7603fbea92cd3652edb3b2edadd6f5a3fe8...a364e16a23fb97ea9768e5adbae36f1de63f44e9#diff-0967fa49a8a2e87942d43011cc34bf127b12879486850aba1fb8bfc45c0896b1L3-R3

(Git commit ids gathered from the annotations on the OCI image indexes 25.2.0 and 25.1.0)

yosifkit avatar Nov 13 '25 19:11 yosifkit

Hi..

I have been able to cleanup our project, the issue I want to highlight are depending on if I using 25-alpine image with sha256:7e467cc5aa91c87e94f93c4608cf234ca24aac3ec941f7f3db207367ccccdd11 or 25-alpine image with sha256:3f162243a45e30f6b20f80255779785789e142bec7b1d5d3b431f31d5b3610f6

I get different result, when using alpine with hash 3f16, I will get "ERROR in SecurityError: Cannot initialize local storage without a --localstorage-file path" error on the build step in the attached docker file. And with the other older version of 25-alpine (7e46) the build is succeding.

The change in how localstorage is handled, it may of course been indented and my error is as simple I was not using like 25.2.0-alpine

ui-app.zip


Edit: Seem this is relevant https://github.com/nodejs/node/pull/60351 so maybe guessing this is intended and my error was not using 25.1.0-alpine...

jesper-at-antirio avatar Nov 13 '25 20:11 jesper-at-antirio