2

Reason i am asking is i want to build some docker images which are not suitable on arm right now .. so i am just wondering If i run terminal on rossetta2 and build docker images. Those images will be built on rossetta2 ?

2

No, code execution doesn’t work that way on macOS Big Sur.

Rosetta2 automatically translates the app when you install it from an Apple install package or translates on the fly if you otherwise side-load the executable and library code.

It doesn’t virtualize a system - it translates code.

Things like kernel extensions or scripts can not be translated and will fail outright. App developers must make new versions of those extensions and scripts in that case.

The only thing running terminal in Rosetta2 will accomplish is you use the translated M1 instructions and not the optimized ones for the terminal app itself. The shell and things running inside terminal run the same either way.

2
  • I don't own an M1 Mac, but the last paragraph runs contrary to what I've read in the past! Before Homebrew added Apple Silicon support, a lot of people used it by setting the Terminal app to open with Rosetta in Get Info. (The problem for OP, of course, is that Docker on Mac actually starts up a VM and won't work in Rosetta, period.) – Wowfunhappy Apr 6 at 2:07
  • Your comment reinforces what a great question this is @Wowfunhappy - it’s not at all clear how things work under the hood. If you get an M1 it teaches so much since you can see how all manner of things do and do not work under the hood. – bmike Apr 6 at 10:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .