What is Docker volume and how to work with it?

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

To have persistent data and to share data between containers, Docker came up with the concept of Docker Volume.
Volumes are directories that are outside of the default File System and exist as normal directories and files on the host filesystem.
As it the volume is outside the container and on host machine, data will not be lost on removal of container. New container can use the same files and directories from the volume.