Skip to content

fix(sandbox): pick sandboxd binary by TARGETARCH instead of forcing a… - #673

Merged
xiaods merged 1 commit into
mainfrom
fix/cli-raw-output-and-gateway-https
Oct 23, 2026
Merged

xiaods merged 1 commit into
mainfrom
fix/cli-raw-output-and-gateway-https

Conversation

@xiaods

@xiaods xiaods commented Oct 23, 2026

Copy link
Copy Markdown
Owner

…md64

The sandbox image Dockerfile declared ARG TARGETARCH=amd64 globally, which pinned the busybox picker stage to the x86_64 sandboxd binary even when building for linux/arm64. As a result the published ghcr.io/xiaods/k8e-sandbox arm64 image shipped an x86_64 /sandboxd, causing 'exec format error' when the gVisor runtime tried to start the sandbox process on the ARM64 VM.

Remove the forced default so BuildKit populates TARGETARCH from the target platform; the release workflow already builds with platforms: linux/amd64,linux/arm64 via docker/build-push-action.

Add a verification step to the build-sandbox-image job that inspects the built sandbox image platforms with docker buildx imagetools inspect.

…md64

The sandbox image Dockerfile declared `ARG TARGETARCH=amd64` globally, which
pinned the busybox picker stage to the x86_64 sandboxd binary even when building
for linux/arm64. As a result the published ghcr.io/xiaods/k8e-sandbox arm64 image
shipped an x86_64 /sandboxd, causing 'exec format error' when the gVisor runtime
tried to start the sandbox process on the ARM64 VM.

Remove the forced default so BuildKit populates TARGETARCH from the target
platform; the release workflow already builds with
`platforms: linux/amd64,linux/arm64` via docker/build-push-action.

Add a verification step to the build-sandbox-image job that inspects the built
sandbox image platforms with docker buildx imagetools inspect.
@sonarqubecloud

Copy link
Copy Markdown

@xiaods
xiaods merged commit 9d6e087 into main Oct 23, 2026
8 checks passed
@xiaods
xiaods deleted the fix/cli-raw-output-and-gateway-https branch October 27, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant