Layers in Docker images
While being able to run your application within a Docker container is, in of itself, a great feature, it is only in combination with a Docker image—a template for container creation—that the advantages of Docker start to become apparent. Docker images are constructed by adding new file system layers on top of preexisting file system layers. Each layer is made up of a static feature, such as the executables, libraries, and other configuration for an application, program, or utility. Upper level layers file paths that match preexisting files in lower layers mask the file from executing code.
For example, say you start with the existing official Redis layer, adding a new layer with its own redis.conf configuration file will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access