scnr / installer

Installation script for Codename SCNR.
https://ecsypno.com/pages/codename-scnr
26 stars 3 forks source link

Docker build fails on MacOS #43

Open delfuego opened 2 hours ago

delfuego commented 2 hours ago

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:

 ! app The requested image's platform (linux/amd64) does not match the detected host
platform (linux/arm64/v8) and no specific platform was requested

I can get past this by adding the platform to the app service in the docker-compose.yml file:

services:
  app:
    build:
      dockerfile: Dockerfile
      platforms:
        - linux/arm64/v8

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
Zapotek commented 2 hours ago

Hello,

Which version of Mac OS X are you using?

Best regards

delfuego commented 1 hour ago

Apologies; that's obviously important data that I omitted!

macOS 14.7 (build 23H124), running on Apple Silicon (M3 Max).