Chapter 2: Working with Docker Data
At one time, containers were used for stateless workloads that could scale up, scale quickly, and move from one location to another without impacting the workload. Stateless workloads limit the type of containers you can run, prohibiting you from running anything beyond items that are stored in the base image.
In this chapter, we will cover the following topics:
- Why you need persistent data
- Docker volumes
- Docker bind mounts
- Docker tmpfs mounts
Let's get started!
Technical requirements
This chapter does not have any technical requirements.
If you want to create volumes using the examples in this chapter, you can use the Docker host that we created in Chapter 1, Docker and Container Essentials. The volumes ...
Get Kubernetes and Docker - An Enterprise Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.