fix: remove QEMU setup, build linux/amd64 only on rootless Docker runners#51
Open
devops-bda wants to merge 1 commit into
Open
fix: remove QEMU setup, build linux/amd64 only on rootless Docker runners#51devops-bda wants to merge 1 commit into
devops-bda wants to merge 1 commit into
Conversation
…runners Rootless Docker runs containers in a user namespace where --privileged cannot write to /proc/sys/fs/binfmt_misc (a kernel-level operation). No binfmt version resolves this — it is a hard constraint of rootless Docker. Removes docker/setup-qemu-action and narrows platforms to linux/amd64, which is the native architecture of the self-hosted runners. To re-enable arm64 in future, register QEMU binfmt handlers at the host level once (as root) using: docker run --privileged --rm tonistiigi/binfmt --install all Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
Rootless Docker (self-hosted runners using
unix:///run/user/<uid>/docker.sock) runs containers inside a user namespace. Even with--privileged, the container cannot write to/proc/sys/fs/binfmt_miscbecause that is a kernel-level operation requiring real root. This is a hard constraint of rootless Docker — no binfmt image version can work around it.Changes
docker/setup-qemu-actionstep entirelyplatformsfromlinux/amd64,linux/arm64tolinux/amd64To re-enable arm64 in future
Register QEMU binfmt handlers at the host level once, as root, outside of Docker:
Or via a systemd one-shot service on the runner host. Once registered at the kernel level, buildx can use them without any in-workflow QEMU setup.
🤖 Generated with Claude Code