Repository navigation
Description
Environment
- macOS 26.7.2 (25G332), Apple silicon (arm64), 12-core, 16 GiB
- container 1.7.1 (release, commit a15b460), CLI and container-apiserver
- Installed via the signed installer package (
com.apple.container-installer1.7.1) - Builder image:
ghcr.io/apple/container-builder-shim/builder:0.13.3
Problem 1: the builder needs Rosetta even for native arm64 builds, and the setting cannot be changed
We only build linux/arm64 images (container build --platform linux/arm64 …). Earlier CLI versions built on this host without Rosetta installed. On 1.7.1 the builder VM fails to start when Rosetta is not installed:
$ container builder start
Error: failed to bootstrap container (cause: "internalError: "failed to bootstrap container buildkit (cause: "unknown: "Error Domain=VZErrorDomain Code=2 "Rosetta is not installed" UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=Rosetta is not installed}"")"")
container system property list shows the default:
[build]
cpus = 2
image = "ghcr.io/apple/container-builder-shim/builder:0.13.3"
memory = "2048mb"
rosetta = true
As far as we can find, there is no way to change it:
container system propertyhas onlylist/ls. There is noset.
container system property set build.rosetta false→Error: 3 unexpected arguments.container builder starthas no--rosetta/--no-rosettaflag.- There is no documented config file. We found no TOML or plist holding these properties under
~/Library/Application Support/com.apple.container,~/.config/containeror~/Library/Preferences.
Installing Rosetta works around it. But a native arm64 build should not need Rosetta, or at least build.rosetta = false should be settable.
Expected: the builder starts without Rosetta when only native-arch platforms are requested, or build.rosetta can be set (container system property set, a documented config file, or a builder start flag).
Steps to reproduce:
- On Apple silicon without Rosetta installed (
/Library/Apple/usr/libexec/oahabsent), install container 1.7.1 and runcontainer system start. - Run
container builder start(or anycontainer build --platform linux/arm64 …). - Observe
VZErrorDomain Code=2 "Rosetta is not installed".
Problem 2: container system status reports "unregistered" while the apiserver runs
$ container system status
apiserver is not running and not registered with launchd
$ container system status --format json
{"status":"unregistered"}
At the same time:
$ launchctl print gui/501/com.apple.container.apiserver
gui/501/com.apple.container.apiserver = {
active count = 2
path = /Users/<user>/Library/Application Support/com.apple.container/apiserver/apiserver.plist
type = LaunchAgent
state = running
…
$ launchctl print user/501/com.apple.container.apiserver
Bad request.
Could not find service "com.apple.container.apiserver" in domain for uid: 501
container ls, container run and container system version (which reports container-apiserver 1.7.1) all work. container system stop logs the services as label=user/501/com.apple.container.*. That suggests status checks the user/<uid> launchd domain, while the services are registered in gui/<uid> (the domain of a logged-in GUI session).
A clean container system stop / container system start does not change it. The result is the same inside and outside a sandboxed shell. (We know about the 1.6.0 fix "container system status false negative under a Seatbelt sandbox", #2316; this happens without a sandbox.)
Expected: status reports running when the apiserver is registered and running in the GUI session's domain.
Impact: scripts that gate on container system status (e.g. "is the container framework running?" before a build) refuse to run on a host where everything works.
Activity