Introduction
Sometimes, you want to save data from a container or share data between containers. Named volumes let you store data outside the container so it stays safe even if the container stops or is removed.
When you want to keep a database's data safe even if the database container is deleted.
When you want two or more containers to access the same files or folders.
When you want to back up or inspect data created by a container easily.
When you want to avoid losing important files after container updates or crashes.