Bootstrapping fails because filesystem check regex doesn't match

סיכום מבוסס בינה מלאכותית

A user, nemesis64, is experiencing issues with bootstrapping due to a regex not matching their filesystem. They discovered that the overlay2 storage driver is supported, but the regex isn’t matching it. After removing the empty string match (^) from the regex, it works perfectly.

nemesis64 provided the output of docker info (paste), which revealed that the Storage Driver entry is now a second-level entry, breaking the existing regex.

Falco acknowledged the issue and will provide a fix. The fix has now been committed to GitHub (commit).

I’m on fedora 30 with everything to the latest(docker is 19.03.0-rc2) as of this topic, and when i get to the bootstrapping step, it fails and says that my filesystem is unsupported, so i investigated the source code and found out that overlay2 is indeed supported.. so i ran the offending line on my terminal and up to no avail, no regex was matched at all..

offending command(without the -q flag):

docker info 2> /dev/null | egrep ‘^Storage Driver: (aufs|zfs|overlay2)$’
No output from terminal

However, upon removing the empty string match(^) It works perfectly and matches my Storage driver:

docker info 2> /dev/null | egrep ‘Storage Driver: (aufs|zfs|overlay2)$’
Storage Driver: overlay2

Why’s the case? Thanks and i can provide any other info if needed!

3 לייקים

Can you paste the output of docker info here? I think they changed formatting on the 19.X version.

3 לייקים

Sure thing, https://pastebin.com/raw/8RBsPtgt

3 לייקים

Looks like there is a Server entry at the top level, and now Storage driver is a second level entry, which broke our regex.

I found this when running docker unstable, but didn’t dig further. I will fix this tommorow.

4 לייקים

Glad im in the beta then so you can patch it out before the beta hits mainstream :slight_smile:

4 לייקים

https://github.com/discourse/discourse_docker/commit/98c5fec43de299bdfc55970cea3495fa4c27d6ac

6 לייקים