Docker images consist of a series of read-only layers, each representing an instruction in the image's Dockerfile. When Docker creates a container from an image, it creates a new writable layer (container layer) on top of the underlying image layers. The storage driver configured in Docker determines how your host system interacts with these layers.
Typical Docker setups will automatically configure the most appropriate storage driver for a given system. You can determine which storage driver is being used by running docker info on the host machine, which will return output similar to:
Containers: 0Images: 0Storage Driver: overlayBacking Filesystem: extfs...
In this example, Docker is using the overlay storage driver.
A storage driver sometimes needs to be explicitly configured for a given system, depending on the following:
The host’s operating system, distribution, and Docker edition
The backing filesystem (i.e. where
/var/lib/docker is located)
overlay2 is the recommended storage driver whenever possible, but any of the below should work:
overlay2 (Ubuntu 14.04.4 or later, 16.04 or later), overlay, zfs, vfs
overlay2 (Debian Stretch), overlay, vfs
overlay2 (Fedora 26 or later, experimental),
Please contact Plotly support if you need help configuring a storage driver while using a Docker edition other than Docker CE.
Specific backing filesystems are required for some storage drivers:
Supported backing filesystems
Additionally, some backing filesystems will require additional configuration depending on the host system’s OS and kernel version, as discussed in Further considerations and cautions.
devicemapper storage driver in
loopback mode is highly unstable and not recommended for production systems. Instead, configure
direct-lvm mode as described in Dash app manager boot failure. (Note that
devicemapper is the default storage driver for Centos 7/RHEL 7 systems.)
Occasionally, storage drivers may have additional prerequisites that could render them incompatible with your system or require additional system configuration. This includes kernel version requirements as well as filesystem formatting. For example, the xfs backing filesystem is supported for the
overlay storage driver, as long as
d_type=true is set.
See the Docker storage driver documentation for additional information on storage drivers and selection/configuration.