rocky-linux / sig-cloud-instance-images

52 stars 7 forks source link

Rocky Linux 8.5, 8.7: Cross-Functionality to Arm not working #40

Closed Koalacards closed 1 year ago

Koalacards commented 1 year ago

Description

My company has been using the rockylinux 8.5 image for a while on platforms amd64 and arm64, and recently have been looking to upgrade to 8.7. While a previously downloaded 8.5 image has no cross-platform issues, an 8.7 image downloaded on 1/9/23 has been unable to run cross-functionally on arm64. Rocky 9.1 images do not seem to have this issue so we might upgrade, but this is still a good thing to fix for others.

Reproduction

Running docker run -it --platform linux/arm64 rockylinux:8.5 uname -a or docker run -it --platform linux/arm64 rockylinux:8.7 uname -a returns the following error:

docker: Error response from daemon: image with reference rockylinux:8.5 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64.

Whereas the 9.1 image (which doesn't have this problem) returns with no problems:

docker run -it --platform linux/arm64 rockylinux:9.1 uname -a
Unable to find image 'rockylinux:9.1' locally
9.1: Pulling from library/rockylinux
3056c2ffb3ea: Pull complete
Digest: sha256:8eb38f164ff94b7e033f6da6c063dabfb7f32f7c179dc7d69cc4ce636cd33355
Status: Downloaded newer image for rockylinux:9.1
Linux 71ed319ce107 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Running specifically the arm instance of the image (arm64v8/rockylinux:8.7) works like normal, but we would prefer the cross-functionality of the base image to work as expected.

Any assistance is appreciated!

Koalacards commented 1 year ago

Closing because I believe this was an issue with configuration on my end