I am currently using a Docker container that requires squashfs
to create the file system.
The container fails to start up correctly and displays this in the logs:
2024-02-01 08:09:53 mount: /mnt/sqfs: unknown filesystem type 'squashfs'.
To debug, I ran cat /proc/filesystems
in the docker container and it did not list squashfs
.
I saw in the release notes for version 4.27.0 of docker (latest as of this question's writing):
Bug fixes and enhancements
For all platforms:
- [...]
- Re-added kernel modules for
btrfs
,xfs
,vfat
,exfat
,ntfs3
,f2fs
,squashfs
,udf
,9p
andautofs
.
I learned from this Stack Overflow thread that
A Docker container cannot have a different filesystem list than their host machine
so I assumed my mac was missing squashfs
.
I then installed squashfs with homebrew per this thread but it still doesn't work.
Even after restarting docker, running cat /proc/filesystems
in the docker container STILL does not list squashfs
. It still also shows the error above as well.
How can I run a container requiring squashfs
on an Intel Based Mac running Sonoma 14.3 and Docker Desktop for mac?
EDIT: Please Note, Versions 4.27.0 and 4.27.1 of Docker for mac have a known issue where docker crashes a few minutes after boot. Beware if you are planning on installing these versions of docker.
EDIT 2:
Versions 4.27.2 of Docker for mac has fixed the errors in versinos 4.27.0 and 4.27.1. After installing it, I now see squashfs
listed when I run cat /proc/filesystems
in the docker container. My docker container still doesn't run properly though, and I now get a different error in my docker logs:
2024-02-13 11:54:40 mount: /mnt/sqfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
squashfs
via brew was successful / could be accessed by docker. I could change this question to instead be the "Y" part and make the "X" a separate question. I'm more familiar with Linux under the hood than mac, and so it would be nice to find a command that does list "the entire menu of possible filesystem types the OS natively handles".