Open corneliusroemer opened 1 month ago
Same behaviour when getting the linux/amd64 docker image for ubuntu and running on macOS arm64:
❯ DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run -it -v $(pwd):/mnt ubuntu bash
root@4ca3a1af7641:/# ./mnt/x86-64-level
ERROR: Cannot reliably infer the CPU x86-64 level, because the format of the CPU flags comprise of other symbols than only lower-case letters, digits, and underscores: ''
root@4ca3a1af7641:/# uname -a
Linux 4ca3a1af7641 6.6.32-linuxkit #1 SMP Thu Jun 13 14:13:01 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@4ca3a1af7641:/#
I tried out x86-64-level on aarch64 ubuntu through docker on macOS arm64 (I know this is not supported, but I was curious what the result would be).
The error message I get is a bit misleading:
IIUC, the CPU flags are
''
which does matchlower-case letters, digits, and underscores
. The error message should rather state "CPU flags empty".Here's
cat /proc/cpuinfo
: