3 Volumes

This chapter covers

  • Using volumes to isolate data from the containerized application
  • Sharing content from your host into containers via volumes
  • Using volumes with the user namespace and SELinux
  • Embedding volumes into container images
  • Exploring different types of volumes and the volume commands

Up until now, the containers you have been working with include all their content within the container image. As I described in chapter 1, the only thing required to be shared with traditional containers is the Linux kernel. There are several reasons you need to isolate application data from the application, including the following:

  • Avoiding embedding actual data for applications such as databases.

  • Using the same container image to run multiple ...

Get Podman in Action 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.