O'Reilly logo

Build Your Own PaaS with Docker by Oskar Hane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Giving Containers Data and Parameters

The WordPress data inside the WordPress container and the database's data inside the MySQL container may not be what we want. It's considered good practice to keep the data outside the service containers because you may want to separate the data from the service container. In this chapter, we'll cover the following topics:

  • Data volumes
  • Creating a data volume image
  • Host on GitHub
  • Publishing on Docker Registry Hub
  • Running on Docker Registry Hub
  • Passing parameters to containers
  • Creating a parameterized image

Data volumes

There are two ways in which we can mount external volumes on our containers. A data volume lets you share data between containers, and the data inside the data volume is untouched if you update, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required