It appears Docker now works fine on Incus containers with zfs storage

Before now, when installing Docker in an Incus instance with zfs storage, it is near unusable out of the box and you would need to work around it or switch entirely to another storage driver.

I noticed today while using Incus that Docker now works fine with zfs out of the box. The storage driver section of docker info shows the following.

 Storage Driver: overlay2
  Backing Filesystem: zfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: true

I have tried searching online to confirm if that is indeed the case but haven’t found anything substantial. However, I noticed that zfs is now a supported storage driver for Docker ZFS storage driver | Docker Docs.

Can anybody else confirm if that is indeed the case?

Update: I came across this as well Update [2025] on Docker inside LXD container with ZFS storage with GPU passthrough - LXD - Ubuntu Community Hub.

After further tests, it appears this is not yet the case. While the intial launch of the containers are quick, subsequent ones are sluggish.

A false excitement it seems, sadly :frowning: .

Docker has worked extremely well in LXC with Incus for a while now. Here is how I do it.