Docker Storage Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
<font color=red>Where are images stored ([[docker images]]), and where are the running and stopped containers stored ([[docker ps]])?</font>
<font color=red>Where are images stored ([[docker images]]), and where are the running and stopped containers stored ([[docker ps]])?</font>


==Available Storage Drives==
Available storage drivers:


===devicemapper Storage Driver===
===devicemapper Storage Driver===
Line 28: Line 28:
{{Internal|Docker device-mapper Storage Backend|device-mapper}}
{{Internal|Docker device-mapper Storage Backend|device-mapper}}


===overlayfs Storage Driver====
===overlayfs Storage Driver===


This is the default storage driver a RHEL installation will default to. Ubuntu installations also prefer it, if they have 4.x kernels.
This is the default storage driver a RHEL installation will default to. Ubuntu installations also prefer it, if they have 4.x kernels.

Revision as of 18:12, 6 May 2018

External

Internal

Image Storage

The Docker server stores the layers that form images into a dedicated storage system, called the storage backend, managed by a pluggable storage driver.

Storage Driver

The Docker storage driver handles details related to how various layers, including the container layer interact with each other and how the container image is exposed. Containers and the images they are created from are stored in Docker’s storage backend. The Docker server's storage backend communicates with the underlying Linux filesystem to build and manage the multiple image layers that combine to form a single image.

Some storage concepts, such as base device size, which essentially represents the container's root file system size, only apply to specific storage backend, device-mapper in this case, and they will be mentioned in the corresponding sections.

To determine what kind of storage backend is in use by a specific server instance, execute docker info. Storage backend details are provided as part of the result.

Where are images stored (docker images), and where are the running and stopped containers stored (docker ps)?

Available storage drivers:

devicemapper Storage Driver

device-mapper

overlayfs Storage Driver

This is the default storage driver a RHEL installation will default to. Ubuntu installations also prefer it, if they have 4.x kernels.

overlayfs, overlayfs2

AUFS

AUFS

BTRFS

BTRFS