Earlier quoted context omitted.
Does OSX offer reasonable container technology? chroot?
I think apple fundamentally does not understand containers. All the interesting container stuff is on other platforms. It might be out of fear, maybe because apple doesn't want macos to be virtualized. It would be really nice to have say the current xcode in one container and a dev xcode in another. It would be nice to farm work out to a lot of machines. or a dockerfile like: FROM macos:10.14 RUN installer xcode... R…
The macOS EULA explicitly allows macOS to be virtualized if you do it on a Mac running macOS.
> It would be really nice to have say the current xcode in one container and a dev xcode in another.
This is the entire point behind xcode-select. I currently have Xcode-beta and Xcode on side-by-side on my machine, and they pretty much coexist.