Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Docker Backing Filesystem to XFS?

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?

like image 698
Nick Avatar asked Dec 24 '17 00:12

Nick


People also ask

Does docker use OverlayFS?

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 .

How do I change Ftype in XFS?

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.

Which filesystem does docker use?

Shared storage systems and the storage driver Each Docker storage driver is based on a Linux filesystem or volume manager.


1 Answers

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.

like image 177
larsks Avatar answered Nov 10 '22 07:11

larsks