13
Jan
In the previous post, we mentioned about the Docker tutorial in. This time, we are starting to run sample projects: Focusing on the Docker Volume, Docker Bind-Mounts. Sample Project 1: HTML Website with Docker Volume, Verify Persistency It shows: how to create volume how to create container, connection with volume and container file path update the content of the index.html create another container to verify persistency Steps: FROM nginx:latest # create a directory for your HTML page RUN mkdir -p /usr/share/nginx/html EXPOSE 80 Enter fullscreen mode Exit fullscreen mode user@docker:~$ docker build -t nginx-volume-demo . Step 1/3 : FROM nginx:latest…