New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildx throws Illegal Instruction installing ca-certificates when building for linux/amd64 on M2 #7255
Comments
lculibrk
changed the title
Buildx
Buildx throws Illegal Instruction installing ca-certificates when building for linux/amd64 on M2
Apr 16, 2024
have the same issue on m3 mac |
I can consistently reproduce this with:
Example build log
System infoM2 Max. Sonoma 14.3.1.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I'm running Docker for mac version 25.0.3 on an M2 (arm64) machine.
When trying to build some relatively simple images using buildx on linux/amd64 arch, I get illegal instruction errors installing the ca-certificates package in the image. These happen only some of the time.
Reproduce
My
Dockerfile
:docker buildx build --platform linux/amd64 --platform linux/arm64 --tag lculibrk/dupcaller --push ./
The linux/arm64 build works just fine, however the linux/amd64 fails. The apt-get stdout is pretty verbose but the relevant bit is below:
Some other logs, then finally:
Expected behavior
The build should probably not error here, especially since rerunning the command sometimes does build the container successfully and sometimes does not.
docker version
Client: Cloud integration: v1.0.35+desktop.11 Version: 25.0.3 API version: 1.44 Go version: go1.21.6 Git commit: 4debf41 Built: Tue Feb 6 21:13:26 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.28.0 (139021) Engine: Version: 25.0.3 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: f417435 Built: Tue Feb 6 21:14:22 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
10E48443-2E93-4CA4-B95F-BD8B7126CFF9/20240416135437
Additional Info
No response
The text was updated successfully, but these errors were encountered: