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

Missing ARM64/AArch64 docker images #4591

Open
KhalilSantana opened this issue Jan 26, 2024 · 3 comments · May be fixed by #4592
Open

Missing ARM64/AArch64 docker images #4591

KhalilSantana opened this issue Jan 26, 2024 · 3 comments · May be fixed by #4592
Labels

Comments

@KhalilSantana
Copy link

Describe the problem

It seems the image kimai/kimai2 does not yet have an ARM64 build, resulting in the container not starting on ARM64 machines (see below). Please consider creating multi-arch images

%      docker run --rm --name kimai-test \
         -ti \
         -p 8001:8001 \
         -e "DATABASE_URL=mysql://kimai:kimai@${HOSTNAME}:3399/kimai?charset=utf8mb4&serverVersion=5.7.40" \
         kimai/kimai2:apache
Unable to find image 'kimai/kimai2:apache' locally
apache: Pulling from kimai/kimai2
2f44b7a888fa: Pull complete 
3a95dcec6035: Pull complete 
e22afa33f327: Pull complete 
1aa61ea11ee8: Pull complete 
ea67ae2bde33: Pull complete 
ff5356c6468f: Pull complete 
5e91cb51e886: Pull complete 
935e88b21d5f: Pull complete 
8202e883ada1: Pull complete 
be40d3507d33: Pull complete 
5fac4c1a6ab6: Pull complete 
03fcb105f703: Pull complete 
87c6b0d7fa4d: Pull complete 
5a4d39ff5c27: Pull complete 
358cde348a7d: Pull complete 
3167e857138f: Pull complete 
acc7d11bbaba: Pull complete 
f72772c907f1: Pull complete 
b6ea6dfe6a27: Pull complete 
98952f5e41c7: Pull complete 
d93f9609a123: Pull complete 
ef31493d1f32: Pull complete 
712cdd660b1a: Pull complete 
aa0271954c32: Pull complete 
a0b874f9dfd9: Pull complete 
73b91592966b: Pull complete 
6a696c0687ad: Pull complete 
852aa803a153: Pull complete 
101e3edab22d: Pull complete 
65c43769547b: Pull complete 
76b356115116: Pull complete 
1b239230c995: Pull complete 
0a1a5df59ab8: Pull complete 
ab21ecd70cc7: Pull complete 
fef353c7e062: Pull complete 
e8b5ca5073dd: Pull complete 
40d60e29e1a2: Pull complete 
43d427d09ee3: Pull complete 
316c2f97476e: Pull complete 
Digest: sha256:903c85e1c01b96aafe0a12e57febf687013c1bf8b331801fb274828a3672b272
Status: Downloaded newer image for kimai/kimai2:apache
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /usr/local/bin/docker-php-entrypoint: exec format error

Describe your setup and add your Docker compose file (redact your credentials)

% cat /etc/lsb-release 
DISTRIB_CODENAME=uakari
DISTRIB_DESCRIPTION="NixOS 24.05 (Uakari)"
DISTRIB_ID=nixos
DISTRIB_RELEASE="24.05"
LSB_VERSION="24.05 (Uakari)"
% uname -rmsv 
Linux 6.1.61 #1-NixOS SMP Thu Nov  2 08:35:33 UTC 2023 aarch64
% docker -v
Docker version 24.0.5, build v24.0.5

Command used to run the container

docker run --rm --name kimai-test \ -ti \ -p 8001:8001 \ -e "DATABASE_URL=mysql://kimai:kimai@${HOSTNAME}:3399/kimai?charset=utf8mb4&serverVersion=5.7.40" \ kimai/kimai2:apache

@kevinpapst
Copy link
Member

There are arm64 images: https://hub.docker.com/r/kimai/kimai2/tags

@Not-Code
Copy link

It's curios, but you are both right 😄

So the current situation is that the multi-architecture is lost when we are retagging the images: fpm, fpm-latest, latest, prod, apache, apache-latest, dev.

    tag:
        needs: build
        runs-on: ubuntu-latest
        steps:

            - name: Login to DockerHub
              uses: docker/login-action@v2
              with:
                  username: ${{secrets.DOCKERHUB_USERNAME}}
                  password: ${{secrets.DOCKERHUB_PASSWORD}}

            - name: Pull images
              run: |
                  docker pull kimai/kimai2:fpm-prod
                  docker pull kimai/kimai2:fpm-dev
                  docker pull kimai/kimai2:apache-prod
                  docker pull kimai/kimai2:apache-dev

            - name: Tag fpm
              run: |
                  docker tag kimai/kimai2:fpm-prod kimai/kimai2:fpm
                  docker push kimai/kimai2:fpm

            - name: Tag fpm latest
              run: |
                  docker tag kimai/kimai2:fpm-prod kimai/kimai2:fpm-latest
                  docker push kimai/kimai2:fpm-latest

            - name: Tag latest
              run: |
                  docker tag kimai/kimai2:fpm-prod kimai/kimai2:latest
                  docker push kimai/kimai2:latest

            - name: Tag prod
              run: |
                  docker tag kimai/kimai2:fpm-prod kimai/kimai2:prod
                  docker push kimai/kimai2:prod

            - name: Tag apache
              run: |
                  docker tag kimai/kimai2:apache-prod kimai/kimai2:apache
                  docker push kimai/kimai2:apache

            - name: Tag apache latest
              run: |
                  docker tag kimai/kimai2:apache-prod kimai/kimai2:apache-latest
                  docker push kimai/kimai2:apache-latest

            - name: Tag dev
              run: |
                  docker tag kimai/kimai2:apache-dev kimai/kimai2:dev
                  docker push kimai/kimai2:dev

As suggested by Kevin, for the meantime you can use the tags that supports both architecture:

fpm-prod
fpm-dev
apache-prod
apache-dev

or all the ones with a specific version in the tag.

@tobybatch
Copy link
Member

@Not-Code Have a look at #4856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants