but then I also get an error that it can't bind-mount the /etc/timezone file, since that file doesn't exist on MacOS:
error during container init: error mounting "/etc/timezone" to rootfs at "/etc/timezone": create
mount destination for /etc/timezone mount: cannot mkdir in /var/lib/docker/overlay2/0698d9e0052a4c3cfb325b93085db78799b1afacff3c98176fb9cac16cdd0c0c
/merged/etc/timezone: not a directory: unknown: Are you trying to mount a directory onto
a file (or vice-versa)? Check if the specified host path exists and is the expected type
The Docker build/run process fails on MacOS.
If I just follow the directions as on the above-linked page, the first failure I get is that the build platform doesn't match the run platform:
I can get past this by adding the platform to the
app
service in thedocker-compose.yml
file:but then I also get an error that it can't bind-mount the
/etc/timezone
file, since that file doesn't exist on MacOS: