-
Notifications
You must be signed in to change notification settings - Fork 517
incorrect version of gcc #511
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
Comments
Will definitely be related to #509 . AMD64 not there yet. |
https://hub.docker.com/layers/library/golang/1.22.0-alpine3.19/images/sha256-c3a0659f8f61439fa9c8edb612fa385c34309c05d0306058c1913ccf3433da40 |
This is a solution for those who are faced with the same problem. FROM amd64/golang:1.22-alpine |
Just to clarify, it won't download any architecture, but only compatible ones (which is why you'd get 386 on amd64, just like you'd get arm32 on an arm64 machine, or armv5 on an armv6). |
When installing the "alpine-sdk" package, for some reason i586-alpine-linux-musl-gcc is installed.
I'm using this image https://github.com/docker-library/golang/blob/893a2c96ba6154de2ad3663d087998bfda0a04e9/1.22/alpine3.19/Dockerfile
There is no such problem in the previous version https://github.com/docker-library/golang/blob/893a2c96ba6154de2ad3663d087998bfda0a04e9/1.21/alpine3.19/Dockerfile
At the same time, if I install the "alpine-sdk" package simply on the alpine3.19 image, then the gcc package puts the correct version of x86_64-alpine-linux-musl-gcc
Command for check 1.22:
docker run --rm golang:1.22-alpine3.19 sh -c 'apk add --update --no-cache alpine-sdk && find / -name "*-alpine-linux-musl-gcc" && uname -m'
Result:
Command for check 1.21:
docker run --rm golang:1.21-alpine3.19 sh -c 'apk add --update --no-cache alpine-sdk && find / -name "*-alpine-linux-musl-gcc"' && uname -m
Result:
This is important to me, because my build stage looks something like this:
UPD:
I did an inspection of the golang image:1.22 is alpine 3.19 and it shows
"Architecture": "386"
.inspect:
docker image inspect golang:1.22-alpine3.19
result:
The text was updated successfully, but these errors were encountered: