Skip to content

1.7.1: container build needs Rosetta with no way to set build.rosetta = false; container system status reports "unregistered" for a running apiserver #2550

Open

Description

@marcegl

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-installer 1.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 property has only list/ls. There is no set.
    container system property set build.rosetta false → Error: 3 unexpected arguments.
  • container builder start has no --rosetta/--no-rosetta flag.
  • There is no documented config file. We found no TOML or plist holding these properties under ~/Library/Application Support/com.apple.container, ~/.config/container or ~/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:

  1. On Apple silicon without Rosetta installed (/Library/Apple/usr/libexec/oah absent), install container 1.7.1 and run container system start.
  2. Run container builder start (or any container build --platform linux/arm64 …).
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions