© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
E. FoudaA Complete Guide to Docker for Operations and Development https://doi.org/10.1007/978-1-4842-8117-8_5

5. Storage and Volumes

Engy Fouda1  
(1)
Hopewell Junction, NY, USA
 

In this chapter, you will learn about storage and mounting volumes for stateful Docker containers and Kubernetes pods. For the Docker containers, there are two types of volumes, the persistent and the ephemeral. Also, there is a data volume. Moreover, there is a crucial difference between saving the data on volumes and using the filesystem when committing the containers to images.

Therefore, the chapter will cover the following topics:
  • How to create a persistent volume for a stateful ...

Get A Complete Guide to Docker for Operations and Development: Test-Prep for the Docker Certified Associate (DCA) Exam 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.