Which THREE of the following are valid storage driver options for Docker on Linux?
Trap 1: ext4-driver
ext4-driver is not a Docker storage driver; ext4 is a filesystem, and Docker's overlay2, devicemapper and btrfs drivers sit above it. It is tempting because ext4 underpins many Docker hosts, but Docker never exposes it as a selectable driver name.
Trap 2: vfs
vfs is a valid Docker storage driver, so it cannot be an incorrect option here; it is the fallback driver used when no copy-on-write filesystem is available, operating without layering optimisations. It would be the correct choice on systems lacking overlay2, btrfs or zfs support.
- A
overlay2
Overlay2 is a union filesystem driver that layers image read-only layers beneath a writable container layer, using kernel overlayfs support. It satisfies the stem's Linux constraint directly, being Docker's default and recommended driver on Linux hosts, unlike Windows-only or deprecated alternatives such as aufs and devicemapper.
- B
ext4-driver
Why it fails: ext4-driver is not a Docker storage driver; ext4 is a filesystem, and Docker's overlay2, devicemapper and btrfs drivers sit above it. It is tempting because ext4 underpins many Docker hosts, but Docker never exposes it as a selectable driver name.
- C
vfs
Why it fails: vfs is a valid Docker storage driver, so it cannot be an incorrect option here; it is the fallback driver used when no copy-on-write filesystem is available, operating without layering optimisations. It would be the correct choice on systems lacking overlay2, btrfs or zfs support.
- D
zfs
zfs is a supported Docker storage driver that uses ZFS datasets and snapshots for image layers and container filesystems. It satisfies the stem's requirement for a valid Docker storage driver option on Linux, provided ZFS is installed.
- E
btrfs
Btrfs is a valid Docker storage driver on Linux, using native subvolumes and snapshots to provide copy-on-write layer management. It satisfies the question's requirement for genuine Linux storage driver options, alongside overlay2 and zfs, unlike Windows-only or non-existent drivers.