What storage drivers does Docker support and which is default?
IntermediateConceptImages, Layers & Storage Drivers
Answer
overlay2 is the default and recommended on modern kernels. Others: fuse-overlayfs (rootless on older kernels), btrfs, zfs, vfs (no CoW, copies everything, slow, used for testing) and the legacy devicemapper/aufs. Docker 29+ and fresh installs may default to the containerd image store (snapshotters) instead of the classic graph drivers. Check docker info | grep -i -E 'storage|driver'.
More on Images, Layers & Storage Drivers
What is a Docker image made of?BeginnerWhat is a layer and when is one created?BeginnerWhat is a union filesystem / OverlayFS?IntermediateWhat is copy-on-write (CoW) in containers?IntermediateWhy does deleting a file in a later `RUN` not shrink the image?IntermediateWhat is the containerd image store and how does it differ from the classic graph driver store?Advanced