Node.js, npm and yarn images for Current, LTS and Maintenance releases.
100K+
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
The current major Node.js (v25) is tagged as latest. lts and maintenance images are also provided:
andrewmackrodt/nodejs:20 (end-of-life: 2026-04-30)andrewmackrodt/nodejs:22 maintenance (end-of-life: 2027-04-30)andrewmackrodt/nodejs:24 lts (end-of-life: 2028-04-30)andrewmackrodt/nodejs:25 current (end-of-life: 2026-06-01)All images are bundled with npm and yarn.
Update Schedule
Images are built nightly and images will be updated as new major.minor.patch-release
packages of Node.js are released. It's possible to pull a specific tag, e.g.
docker pull andrewmackrodt/nodejs:10.16.0-r1, see Docker Hub for a list of
supported tags.
Removal Policy
Old tags are subject to removal periodically without notice.
# start interactive mode
docker run --rm -it andrewmackrodt/nodejs
# print version
docker run --rm andrewmackrodt/nodejs --version
# run npm install in the current directory
docker run --rm -it \
-e PUID=$(id -u) \
-e PGID=$(id -g) \
-v $PWD:/app \
-w /app \
andrewmackrodt/nodejs npm install
# run yarn install in the current directory
docker run --rm -it \
-e PUID=$(id -u) \
-e PGID=$(id -g) \
-v $PWD:/app \
-w /app \
andrewmackrodt/nodejs yarn install
| Parameter | Function |
|---|---|
-e PUID=1000 | The user id, recommended: $(id -u) |
-e PGID=1000 | The group id, recommended: $(id -g) |
-e SUDO_NOPASSWD=0 | Set to 1 to allow passwordless sudo |
Content type
Image
Digest
sha256:058395970…
Size
305.5 MB
Last updated
4 months ago
docker pull andrewmackrodt/nodejs