© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. BhatPractical Docker with Pythonhttps://doi.org/10.1007/978-1-4842-7815-4_5

5. Understanding Docker Volumes

Sathyajith Bhat1  
(1)
Bangalore, Karnataka, India
 

In the previous chapters, you learned about Docker and its associated terminologies and took a deeper look into how you can build Docker images using the Dockerfile. In this chapter, you look at data persistency strategies for Docker containers and learn why you need special strategies for data persistence.

Data Persistence

Traditionally, most compute solutions come with associated ways to persist and save data. In the case of virtual machines, a virtual disk is emulated, and the data saved to this virtual ...

Get Practical Docker with Python: Build, Release, and Distribute Your Python App with Docker 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.