LXD Container: Docker backing file system. How to set it to xfs?

One of my installation is failing with message that ‘xfs backing file-system is required and not extfs’

LXD init is not giving option for xfs driver (so I chose lvm). I also looked into the docs and nowhere could I find reference for XFS storage driver. I see that xfsprogs is installed on my host.

How can I set backing file system as xfs for Docker in a container? Thoughts?

Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true

If you’re using LVM with LXD, you can set the volume.block.filesystem property on your storage pool to xfs which will lead to newly created containers and images to use XFS rather than ext4.

That being said, this is the first time I hear of Docker requiring this somehow, most of our users have been just fine running Docker with overlay2 or aufs driver on top of zfs, btrfs or ext4.

1 Like

Thanks @stgraber this setting works.

Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: true
 Native Overlay Diff: true
1 Like