🐞 Bug: Image patching on ARM64 tries to use linux/amd64 despite “Patch All Platforms” being disabled
Bug Description
Arcane image package patching fails on an ARM64 Docker host because the Copacetic/BuildKit patching process attempts to use linux/amd64, even though:
- the Docker host is ARM64
- the BuildKit worker only uses
linux/arm64 - the locally installed image is
linux/arm64 - the Arcane Manager image itself is
linux/arm64 - "Patch All Platforms" is disabled in Arcane
The patch operation fails with:
emulation is not enabled for platform linux/amd64 on any BuildKit worker; configure a native worker or QEMU/binfmt support
There should not be a requirement for AMD64 emulation in this configuration.
Possible Cause
It looks like the patching process may be resolving the multi-platform OCI
index and selecting or processing linux/amd64 despite "Patch All Platforms"
being disabled.
It might be worth checking whether the platform passed from Arcane to the
Copacetic patching library is explicitly set to the Docker environment's
platform (linux/arm64) when Patch All Platforms is false.
Steps To Reproduce
-
Run Arcane on an ARM64/aarch64 Docker host.
-
Make sure "Patch All Platforms" is disabled.
-
Pull and run the ARM64 variant of a multi-architecture image, for example:
ghcr.io/freshrss/freshrss:latest -
Verify the locally installed image architecture:
docker image inspect ghcr.io/freshrss/freshrss:latest \ --format '{{.Os}}/{{.Architecture}}'Output:
linux/arm64 -
Verify the Docker host architecture:
docker info --format '{{.Architecture}}'Output:
aarch64 -
Verify BuildKit:
docker buildx lsOutput:
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS default* docker \_ default \_ default running v0.34.2 linux/arm64 -
Verify the Arcane Manager image:
docker image inspect ghcr.io/getarcaneapp/manager:v3 \ --format '{{.Os}}/{{.Architecture}}'Output:
linux/arm64 -
Trigger image package/CVE patching for the FreshRSS image in Arcane.
-
Patching fails because BuildKit is asked to handle
linux/amd64.
Expected Behavior
With "Patch All Platforms" disabled, Arcane should patch only the platform corresponding to the current Docker environment/image, in this case:
linux/arm64
The patch process should therefore not require an AMD64 BuildKit worker or QEMU/binfmt emulation.
Actual Behavior
Arcane/Copacetic attempts to perform a BuildKit operation for:
linux/amd64
BuildKit then fails with:
emulation is not enabled for platform linux/amd64 on any BuildKit worker;
configure a native worker or QEMU/binfmt support
Screenshots
No response
Arcane Version
v3.0.1
Installation Method
Docker Compose (Recommended)
Environment Type
Local Docker (Single instance)
Database Type
SQLite (Default)
Operating System
Linux
Docker Version
29.9.3, build 5457199
Browser & Version
No response
Debug Logs
Host architecture: aarch64 / ARM64
Docker architecture: aarch64
BuildKit: v0.34.2
BuildKit platforms: linux/arm64
Arcane image: ghcr.io/getarcaneapp/manager:v3
Arcane image architecture: linux/arm64
Target image: ghcr.io/freshrss/freshrss:latest
Target image architecture locally: linux/arm64
Target registry image: multi-platform OCI index
"Patch All Platforms": disabled
Docker Compose Configuration
Environment Configuration (.env file)
Additional Context
The affected FreshRSS tag is a multi-platform OCI image:
Name: ghcr.io/freshrss/freshrss:latest
MediaType: application/vnd.oci.image.index.v1+json
Its manifest contains the following actual image platforms:
linux/amd64
linux/arm/v7
linux/arm64
It also contains attestation manifests with:
unknown/unknown
The locally pulled and running FreshRSS image is definitely the ARM64 variant:
linux/arm64
The Arcane Manager is also running as ARM64:
ghcr.io/getarcaneapp/manager:v3
linux/arm64
Therefore, all components involved locally are ARM64. The unexpected
linux/amd64 platform appears to be selected during Arcane's
Copacetic/BuildKit patching process.
Since "Patch All Platforms" is disabled, I would expect Arcane to explicitly
select linux/arm64 instead of attempting to patch another platform from the
multi-architecture OCI index.
This seems to come from a slightly modified compose.yml for security reasons. If i enable again - '-allowPOST=(/v[\d.]+)?/session' patching does work.
docker-socket-proxy:
image: wollomatic/socket-proxy:1.13.1
container_name: arcane-docker-proxy
user: '0:0'
command:
- '-listenip=0.0.0.0'
- '-allowfrom=arcane,arcane-upgrader'
- '-allowhealthcheck'
- '-allowGET=(/v[\d.]+)?/_ping'
- '-allowGET=(/v[\d.]+)?/events(/.*)?'
- '-allowGET=(/v[\d.]+)?/version'
- '-allowGET=(/v[\d.]+)?/info(/.*)?'
- '-allowGET=(/v[\d.]+)?/system/df'
- '-allowGET=(/v[\d.]+)?/containers(/.*)?'
- '-allowGET=(/v[\d.]+)?/exec(/.*)?'
- '-allowGET=(/v[\d.]+)?/images(/.*)?'
- '-allowGET=(/v[\d.]+)?/networks(/.*)?'
- '-allowGET=(/v[\d.]+)?/volumes(/.*)?'
- '-allowGET=(/v[\d.]+)?/distribution(/.*)?'
# - '-allowGET=(/v[\d.]+)?/swarm(/.*)?'
# - '-allowGET=(/v[\d.]+)?/nodes(/.*)?'
# - '-allowGET=(/v[\d.]+)?/services(/.*)?'
- '-allowGET=(/v[\d.]+)?/tasks(/.*)?'
# - '-allowGET=(/v[\d.]+)?/secrets(/.*)?'
# - '-allowGET=(/v[\d.]+)?/configs(/.*)?'
- '-allowHEAD=(/v[\d.]+)?/_ping'
- '-allowHEAD=(/v[\d.]+)?/version'
- '-allowPOST=(/v[\d.]+)?/containers(/.*)?'
- '-allowPOST=(/v[\d.]+)?/exec(/.*)?'
- '-allowPOST=(/v[\d.]+)?/images(/.*)?'
- '-allowPOST=(/v[\d.]+)?/networks(/.*)?'
- '-allowPOST=(/v[\d.]+)?/volumes(/.*)?'
# - '-allowPOST=(/v[\d.]+)?/commit'
- '-allowPOST=(/v[\d.]+)?/build(/.*)?'
# - '-allowPOST=(/v[\d.]+)?/session'
- '-allowPOST=(/v[\d.]+)?/grpc'
# - '-allowPOST=(/v[\d.]+)?/auth'
# - '-allowPOST=(/v[\d.]+)?/swarm(/.*)?'
# - '-allowPOST=(/v[\d.]+)?/nodes(/.*)?'
# - '-allowPOST=(/v[\d.]+)?/services(/.*)?'
# - '-allowPOST=(/v[\d.]+)?/secrets(/.*)?'
# - '-allowPOST=(/v[\d.]+)?/configs(/.*)?'
- '-allowPUT=(/v[\d.]+)?/containers(/.*)?'
- '-allowDELETE=(/v[\d.]+)?/containers(/.*)?'
- '-allowDELETE=(/v[\d.]+)?/images(/.*)?'
- '-allowDELETE=(/v[\d.]+)?/networks(/.*)?'
- '-allowDELETE=(/v[\d.]+)?/volumes(/.*)?'
# - '-allowDELETE=(/v[\d.]+)?/nodes(/.*)?'
# - '-allowDELETE=(/v[\d.]+)?/services(/.*)?'
# - '-allowDELETE=(/v[\d.]+)?/secrets(/.*)?'
# - '-allowDELETE=(/v[\d.]+)?/configs(/.*)?'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ['CMD', './healthcheck']
interval: 2s
timeout: 5s
retries: 15
networks:
- arcane-internal
restart: on-failure:3