Why is overlay2 not supported in launcher?

AI-generated summary

The discussion addresses why the overlay2 storage driver was unsupported in the Discourse launcher. Lutz suggested updating the launcher code to recognize overlay2 as a supported driver, noting that the current error message is misleading for users on overlay2. Falco explained that the driver wasn’t initially included because the team hadn’t tested it internally, but was open to adding support if the community confirmed its stability. Lutz confirmed that overlay2 works without issues on their end since Discourse 1.6. sam clarified that the omission was unintentional, resulting from a bug fix in a previous test, and confirmed that overlay2 has been added back to the list of supported storage engines.

In my opinion, the code in the launcher should be

if ! $docker_path info 2> /dev/null | egrep -q '^Storage Driver: (aufs|btrfs|zfs|overlay|overlay2)$'; then

and not

if ! $docker_path info 2> /dev/null | egrep -q '^Storage Driver: (aufs|btrfs|zfs|overlay)$'; then

There is no reason for this message if using overlay2.

Your Docker installation is not using a supported storage driver.  If we were to proceed you may have a broken install.
aufs is the recommended storage driver, although zfs/btrfs and overlay may work as well.
Other storage drivers are known to be problematic.
You can tell what filesystem you are using by running "docker info" and looking at the 'Storage Driver' line.

This is more about we aren’t using overlay2 internally so we can’t say it runs great with Discourse, but if there are enough people in the community saying it works, and have it running long enough, we can add it.

Ok, then count me in. I’m using it since Discourse 1.6 / Kernel 4.8 and it works without any issues.

Sure, overlay2 being removed from the list of “sort of supported storage engines” list was an unintentional change @mpalmer made when he fixed our previous test (that was completely bust).

I just added it back in.