I'm having difficulty setting up Docker to build a container with the XFS Filesystem. My Storage Driver is correctly set to overlay2
, but my Backing Filesystem is extfs
.
Is there something I would specify for storage-opts
in my docker daemon file?
OverlayFS is a modern union filesystem that is similar to AUFS, but faster and with a simpler implementation. Docker provides two storage drivers for OverlayFS: the original overlay , and the newer and more stable overlay2 .
Format the partition with ftype=1. Create a new directory as /storage and mount the partition there. Create 2 new directory (docker, containerd) inside the /storage . Change the default data directory for both containerd and dockerd and point to the newly-created directory.
Shared storage systems and the storage driver Each Docker storage driver is based on a Linux filesystem or volume manager.
If you are using the overlay2
storage driver, then Docker never creates filesystems. It is simply creating directories on your existing backing filesystem. If that filesystem is using ext4
, that's what you're going to get.
The only situation in which Docker actually creates a new filesystem is when using the devicemapper
driver, in which case Docker is carving out chunks from a block storage device and then formatting them for use with the filesystem of your choice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With