Interview Prep/Docker/Images, Layers & Storage Drivers

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.

All Docker questions Roadmap: Docker & containers

More on Images, Layers & Storage Drivers