Docker image layers

Docker images are layer based – layer based architecture. Each step (instruction) from a Dockerfile creates a layer. These layers are cached and reused next time the image is built. Lets see one Docker file for a node.js app: Now, imagine we change the content of the app folder and then we rebuild the image….