I'm completely new to Docker and Containers. I'm also new to the entire VM concepts.
I understand that VM and Dockers are a way to make all the dependencies of an application to be available as a single component that you can easily deploy on clouds that support them.
I installed Docker on my local machine (an Ubuntu) and I used used this guide to download and run the Node Official Image.
What I need to know now is how do I make code changes for the files inside of Docker? I made changes to the 'server.js' inside the app and when I navigate to
You could make changes inside an container and could even commit these changes to the original image or create a new image as well as.
But I recommend you to create a new images or tags.
Review the guide. When you want to make a change on
server.js, let do it but build a new image for it also. Don't forget to add a tag (
docker build -t <your username>/node-web-app:test1 .
Then you could run the new image with
docker run -p 49160:8080 -d <your username>/node-web-app:test1