Course contentsShow
← Cloud and Infrastructure
Lesson 1033 of 2,98920. Docker in DepthFree lesson

Docker Storage Drivers

Learn about storage drivers (overlay2, aufs, devicemapper) and how they affect container performance and compatibility.

Docker Storage Drivers

What you'll learn: How Docker's storage drivers manage container filesystems and why choosing the right one matters for performance and compatibility.

What Are Storage Drivers?

Docker storage drivers control how container layers and images are stored and accessed on your host system. Remember how Docker images are built from layers? Storage drivers are the underlying technology that makes that layering system work.

Think of a storage driver as the filing system in an office. Different filing systems (alphabetical folders, color-coded binders, digital databases) organize the same documents differently. Each has trade-offs in speed, space efficiency, and compatibility with existing furniture.

The Main Storage Drivers

overlay2

The modern default and recommended driver for most Linux distributions. It's fast, efficient, and works with most Docker features. Uses OverlayFS to stack layers directly in the filesystem.

aufs

An older union filesystem driver, once the default but now deprecated. Still found on older Ubuntu systems. Being phased out in favor of overlay2.

devicemapper

Uses block-level storage with thin provisioning. Common on older RHEL/CentOS systems before overlay2 support. More complex configuration but works with certain enterprise storage systems.

Why It Matters

Your storage driver affects:

  • Performance: How fast containers read/write files
  • Compatibility: Whether your OS kernel supports it
  • Disk usage: How efficiently layers are stored
  • Feature support: Some drivers don't support all Docker capabilities

Most modern systems automatically select overlay2, but understanding these options helps when troubleshooting performance issues or working with legacy systems.

Key Takeaway: Storage drivers are the engine behind Docker's layered filesystem—overlay2 is the modern standard, but understanding driver differences helps you diagnose compatibility and performance issues.