Mount volumes to persist data in local & initialize database in Docker

When a docker container is deleted, relaunching it from the image will start a fresh new container without any of the changes made in the previously running containerThis happens because when we create a new container from an image, we add a new writable layer on top of the underlying stack of layers present in … Continue reading Mount volumes to persist data in local & initialize database in Docker

DockerFile , Docker Image, Docker Container

Dockerfile is a text file that contains the instructions needed to create a new container image. Docker engine reads the instructions from top to bottom. It contains a bunch of instructions which informs Docker HOW the Docker image should get built. It is like the script of a movie which contains details on how the … Continue reading DockerFile , Docker Image, Docker Container