Chapter 4. Working with storage and volumes

This chapter covers

  • Introducing mount points
  • How to share data between the host and a container
  • How to share data between containers
  • Using temporary, in-memory filesystems
  • Managing data with volumes
  • Advanced storage with volume plugins

At this point in the book, you’ve installed and run a few programs. You’ve seen a few toy examples but haven’t run anything that resembles the real world. The difference between the examples in the first three chapters and the real world is that in the real world, programs work with data. This chapter introduces Docker volumes and strategies that you’ll use to manage data with containers.

Consider what it might look like to run a database program inside a container. ...

Get Docker in Action, Second Edition 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.