Why might `overlay2` fail with "invalid argument" or "d_type" problems?
AdvancedConceptImages, Layers & Storage Drivers
Answer
overlay2 needs the backing filesystem to support d_type (XFS must be created with ftype=1; ext4 is fine). Without it, dockerd warns "Backing Filesystem is xfs without d_type support" and may refuse to start. Check with xfs_info /var/lib/docker | grep ftype. Also overlay cannot sit on top of another overlay, NFS or some encrypted FS, which breaks Docker-in-Docker unless /var/lib/docker is a volume.
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 storage drivers does Docker support and which is default?Intermediate