4 ms·
I'm curious about the docker image situation. I had thought that the M1 could natively emulate x86 instructions. So why then can you not run the native x86 doc
by zmmmmm 5y ago
I'm curious about the docker image situation.
I had thought that the M1 could natively emulate x86 instructions. So why then can you not run the native x86 docker images? Is it a virtualisation issue?
- bronson 5y agoIt does, which is slow, then the disk emulation makes it slower. Yes you can do it, but it’s not much fun. Improvements are on the way.
- metabagel 5y agoApparently, it does work in most cases, but aarch64 images have better performance and are more stable. https://docs.docker.com/desktop/mac/apple-silicon/ https://docs.docker.com/desktop/mac/apple-silicon/
- johndoe0815 5y agoThe M1 does not emulate x86 instructions (in hardware). Emulation is provided by Rosetta 2, a combined ahead-of-time and just-in-time emulation that can run x86-64 macOS binaries on Aarch64. However, there is still some hardware support for Rosetta 2 in the M1, e.g. to support strong memory ordering. More details on Rosetta 2 internals can be found at https://ffri.github.io/ProjectChampollion/ https://ffri.github.io/ProjectChampollion/
- fulafel 5y agoThere is no hw emulation, it's all software.