Open HaotianHuang opened 1 year ago
Hi @HaotianHuang
I get the same error on Apple M1. It seems that Docker will run in emulation mode and that it is not fully supported yet. I tried adding a --platform=linux/amd64
flag to docker build
but the MATLAB Runtime installer still gets stuck:
=> [ 7/14] RUN /opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent 1887.3s
=> => # (Dec 12, 2022 12:28:32) libdir /opt/mcr_install
=> => # (Dec 12, 2022 12:28:32) destinationFolder /opt/mcr
=> => # (Dec 12, 2022 12:28:32) agreeToLicense yes
=> => # (Dec 12, 2022 12:28:32) mode silent
=> => # (Dec 12, 2022 12:28:32) standalone true
=> => # (Dec 12, 2022 12:28:32) connectionMode OFFLINE_ONLY
If you try to run a pre-built SPM image, you get another error:
% docker run ghcr.io/spm/spm-docker:docker-matlab
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Fatal Internal Error: std::exception: uint64_t foundation::core::system::linux::x86_64::getMaximumProcessorFrequencyImpl(): Numerical result out of range
Unless someone suggests a workaround, I'm afraid I don't have a solution here. Do you have access to a non-M1 machine (Apple Intel, Linux, Windows)? We will hope to provide a native ARM64-based Docker image at some point but MATLAB is still in an Open Beta on that architecture.
Trying to build docker image via
docker build -t ubuntu:ctseg -f CTseg/Dockerfile .
Process failed due toinstall_unix_legacy: not found
System: macOS Monterey (12.5.1) Architecture: M1
Error logs included: