Skip to content

arm64 gitlab-runner-helper images on registry.gitlab.org are stamped as amd64

Something is causing the arm64 gitlab-runner-helper images to be marked with the amd64 architecture, such that warnings are generated when using the image. I've included an example using the arm64 runner helper image for runner v15.2.1, but I've seen this with 15.1.1 and 15.3.0 as well. I am not sure how long it's been like this.

$ uname -a
Linux gitlab-arm-builder-1 4.18.0-348.20.1.el7.aarch64 #1 SMP Wed Apr 13 20:57:50 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

[root@gitlab-arm-builder-1 ~]# docker pull gitlab/gitlab-runner:alpine-v15.2.1
alpine-v15.2.1: Pulling from gitlab/gitlab-runner
9981e73032c8: Pull complete
fc5cdb2d7f56: Pull complete
59b523d7bdc0: Pull complete
Digest: sha256:818429f1ce8f8527c74fe456c4db45f6eb9d9b6a2583a5fbbbadaa08b4fde801
Status: Downloaded newer image for gitlab/gitlab-runner:alpine-v15.2.1
docker.io/gitlab/gitlab-runner:alpine-v15.2.1

$ docker run --rm gitlab/gitlab-runner:alpine-v15.2.1 --version
Version:      15.2.1
Git revision: 32fc1585
Git branch:   15-2-stable
GO version:   go1.17.9
Built:        2022-07-26T21:21:20+0000
OS/Arch:      linux/arm64

$ docker pull registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-32fc1585
arm64-32fc1585: Pulling from gitlab-org/gitlab-runner/gitlab-runner-helper
674fd4ee3b19: Pull complete
Digest: sha256:6c22f2bbe5995e66aa7cfbf529e7432fd735ea7ebace573864d761418b308ff5
Status: Downloaded newer image for registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-32fc1585
registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-32fc1585

$ docker inspect --format='{{ .Architecture }}' registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-32fc1585
amd64

$ docker run -it --rm registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-32fc1585 sh
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
/ # uname -a
Linux 4b97bc192388 4.18.0-348.20.1.el7.aarch64 #1 SMP Wed Apr 13 20:57:50 UTC 2022 aarch64 Linux```
Edited by Ghost User