What is the purpose of VOLUME in Dockerfile

0 votes
I'm trying to grasp Docker's volume better, and I'm having trouble figuring out the distinctions / use-cases of:

The docker volume create command creates a new volume in a docker container.
run -v /path:/host path in docker
I'm particularly confused about the VOLUME item in the Dockerfile file, and what occurs when you combine it with the -v flag.
Apr 29, 2022 in Docker by Abhijeet
• 180 points

edited 4 days ago 4 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP