Skip to content
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

Docker multi-platform build fails for linux/arm/v6 #52

Closed
fishgrimsby opened this issue Dec 29, 2023 · 1 comment · Fixed by #53
Closed

Docker multi-platform build fails for linux/arm/v6 #52

fishgrimsby opened this issue Dec 29, 2023 · 1 comment · Fixed by #53
Assignees
Labels
bug Something isn't working

Comments

@fishgrimsby
Copy link
Owner

Description

Building the multi-platform docker image now fails for linux/arm/v6

Error messages

 > [linux/arm/v6 internal] load metadata for docker.io/library/golang:1.21:
------
Dockerfile:1
--------------------
   1 | >>> FROM golang:1.21 AS build-stage
   2 |     
   3 |     WORKDIR /app
--------------------
ERROR: failed to solve: golang:1.21: no match for platform in manifest: not found
Error: buildx failed with: ERROR: failed to solve: golang:1.21: no match for platform in manifest: not found

Steps to reproduce

Trigger the Docker workflow at: .github/workflows/docker.yaml

Alternatively, on a local machine, from the repo root run:

docker buildx build --file ./build/package/Dockerfile --platform linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 -t borgmatic-exporter:test .
@fishgrimsby fishgrimsby added the bug Something isn't working label Dec 29, 2023
@fishgrimsby
Copy link
Owner Author

Seems this is an intentional breaking change - details can be found here: docker-library/golang#502 and docker-library/golang#500 (comment)

The resolution appears to be to switch to the alpine image for the build-stage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant