# Learn Docker: Persist Quiz

## Metadata
- Author: [[boot.dev]]
- Full Title: Learn Docker: Persist Quiz
- Category: #articles
- Summary: Understand Docker from the ground up by building with it. Learn why Docker is a staple both for deploying to production and local development.
- URL: https://www.boot.dev/lessons/d3873b5f-f860-473d-9dac-19299d9822fc
## Highlights
- • A *container's* file system is *read-write*, but when you delete a container, and start a new one from the same image, that new container starts from scratch again with a copy of the image. All stateful changes are lost.
• A *volume's* file system is *read-write*, but it lives *outside* a single container. If a container uses a volume, then stateful changes can be persisted to the volume even if the container is deleted. ([View Highlight](https://read.readwise.io/read/01km6vg3kd1d4m4vrsffmcq0mc))
- Volumes are often used by applications like Ghost, Grafana, or WordPress to persist data so that when a container is deleted and a new one is created the state of the application isn't lost. Containerized applications are typically thought of as *ephemeral* (temporary). If your application breaks just because you deleted and recreated a container... it's not a very good containerization! ([View Highlight](https://read.readwise.io/read/01km6vggxb58f0nazpvwa56w2y))