Hello! I have a Chromebook with 64 GB of internal storage, and I'm looking to use to for dev purposes. I got the Linux "Crostini" container up and running easily, and I got docker installed, as many of my workflows involve docker and/or podman.
However, since docker images can be quite large, I want to be able to move them elsewhere, since I expect to quickly run out of space on my drive. I have a 256 GB SD Card that I plan to just leave in the slot, and I can share its folders with the container via the normal means (where it shows up in /mnt/chromeos). But I haven't been able to figure out how to effectively use that as a storage location for docker.
Things I've tried:
1. Symlinking /var/lib/docker to /mnt/chromeos/path/to/my-shared-folder
Result: docker pull complains that it cannot chown the layers once it downloads them
2. Bind-mounting /var/lib/docker to /mnt/chromeos/path/to/my-shared-folder
Result: same as above: docker pull complains that it cannot chown the layers once it downloads them
3. Disabling rootful docker daemon and enabling rootless docker as my user, and bind-mounting or symlinking the ~/.local docker storage area to /mnt/chromeos/path/to/my-shared-folder
Result: docker continues to complain about not being able to chown
Result: works, can use this filesystem, but it is insanely slow. I didn't do much IO testing here but normal operations like `docker run busybox echo hi` take > 15 s, vs almost instantaneous when the storage location is on the normal mount. Also seems to complicate the lxd startup and make it unstable.
Anybody have any ideas on how I can usably share my SD Card for docker storage use with this container?