Docker Volumes explained in 6 minutes

↔️ ↕️



so in this video we're gonna learn about

docker volumes in a natural docker

volumes are used for data persistence in

docker so for example if you have

databases or other stateful applications

you would want to use docker volumes for

that so what are the specific use cases

when you need docker volumes so

container runs on a host let's say we

have a database container and a

container has a virtual file system

where the data is usually stored but

here there is no persistence so if I

were to remove the container or stop it

and restart the container then the data

in this virtual file system is gone and

it starts from a fresh state which is

obviously not very practical because I

want to save the changes that my

application is making in the database

Related queries:

how to mount volume in docker compose file
how to mount volume in docker
docker compose volume mount example
docker command to mount volume