There is an implicit assumption about where the tmp directory is located. This works (on Ubuntu-related OS’s) if Docker is installed from the apt repository, but not if installed from Snap - which does weird and silly things when creating tmp directories.
For my immediate purposes, I could get it working by putting the tmp directory under the repository root:
I have a lot of sympathy with your dis-inclination.
It’s just unfortunate that Canonical are pushing Snap so hard. Even on my Linux Mint installation, Snap frequently has more up-to-date versions (of many things) than apt.
I’ll switch to a non-Snap Docker, and stop messing with the generic track.