© Sathyajith Bhat 2018
Sathyajith BhatPractical Docker with Pythonhttps://doi.org/10.1007/978-1-4842-3784-7_5

5. Understanding Docker Volumes

Sathyajith Bhat1 
(1)
Bangalore, Karnataka, India
 

In the previous chapters, we learned about Docker and its associated terminologies and took a deeper look into how we can build Docker images using the Dockerfile.

In this chapter, we look at data persistency strategies for Docker containers and learn why we need special strategies for data persistence.

Data Persistence

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

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.