May 3, 20251 yr I'm running a docker that needs node.js updated, but the author of the docker doesn't seem to be maintaining it any more. Is there a way to upgrade node.js within the docker?
May 3, 20251 yr 2 ways... option 2 is preferred... 1. docker execute and docker console to run package manger and commands to docker... if the tools in the docker are there you can try and run a npm audit and npm update terminal commands via the docker console -But this will need to be ran each time the docker starts and does things.. Option 1 is not recommend due to tag updates and code changes and sometime starting over due to attempts and breaking of the image... Most docker strip or remove the package manger and other tools that can be used to leverage or break the system. 2. code and program it yourself, using the docker tag as a base for the docker image. Find their GitHub of the project(if it exisits...) or make a docker file that pulls their current image and run the docker file commands to update and use the current docker while running your commands to update and use npm... *most items you can Google github docker tag and find the project page for the docker in question and use docker file and docker build commands to update LLM and ai can help here as well... Docker docs to review on Dockerfile... https://docs.docker.com/build/concepts/dockerfile/ https://docs.docker.com/reference/dockerfile/ Some example docker file for cam av / sftp I've updated and worked on with others... alpine: https://github.com/bmartino1/clamav-alpine/blob/master/Dockerfile Clam av using clamdscan over clamscan... Phusion / ubuntu Debian base https://github.com/bmartino1/docker-sftp/blob/master/Dockerfile sftp opensh server with fail2ban ...as usually npn are debian/ubutnu based or alpine based... different package manager and linux written as docker commands ... the docker build tagname . and test with your new tag... Trial and error fixing any issues or adding script and other thing directly to the docker image... Watch licenses of software when sharing... MIT and GNU Licenses are your friends to not be sued and shutdown.... give credit and acknowledge along the way helps and can save you...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.