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

AWS Public ECR: WARNING: image platform (linux/arm64) does not match the expected platform (linux/amd64) #814

Open
4 tasks done
yermulnik opened this issue Feb 3, 2025 · 5 comments
Assignees
Labels
scope/infra CI, CD, dev. env, etc. status/feedback-requested status/triage/completed Automatic triage completed

Comments

@yermulnik
Copy link
Contributor

yermulnik commented Feb 3, 2025

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

@Haarolean Could you please look into re-building/re-pushing v1.0.0 and v1.1.0 tags to AWS Public ECR as they seem to be borked while latest main is good and while GHCR also hosts good images? Thanks in advance.

AWS Public ECR (notice the WARNING for version tagged images, main is all fine):

> podman pull public.ecr.aws/kafbat/kafka-ui:v1.1.0
Trying to pull public.ecr.aws/kafbat/kafka-ui:v1.1.0...
Getting image source signatures
Copying blob e609739c34cc done   |
Copying blob cb8611c9fe51 done   |
Copying blob 8a814714cbee done   |
Copying blob c1c465a07f65 done   |
Copying blob 55acdce7679f done   |
Copying blob 2da0940f3337 done   |
Copying blob 87e8804acfee done   |
Copying config f106987cdb done   |
Writing manifest to image destination
WARNING: image platform (linux/arm64) does not match the expected platform (linux/amd64)

> podman run -it -p 8080:8080 -e DYNAMIC_CONFIG_ENABLED=true public.ecr.aws/kafbat/kafka-ui:v1.1.0
WARNING: image platform (linux/arm64) does not match the expected platform (linux/amd64)
{"msg":"exec container process `/bin/sh`: Exec format error","level":"error","time":"2025-02-03T18:41:39.597460Z"}

> podman pull public.ecr.aws/kafbat/kafka-ui:v1.0.0
Trying to pull public.ecr.aws/kafbat/kafka-ui:v1.0.0...
Getting image source signatures
Copying blob a0e7c84ba2ab done   |
Copying blob 9129d3fa56db done   |
Copying blob cb513fcbaa80 done   |
Copying blob 1c7dbb3ae0ba done   |
Copying blob 4abcf2066143 skipped: already exists
Copying blob 186dc06b6e3a done   |
Copying blob 4d6bb9a3d7b9 done   |
Copying config 7d264e4a5e done   |
Writing manifest to image destination
WARNING: image platform (linux/arm64) does not match the expected platform (linux/amd64)
7d264e4a5ec426491664bbdac6999c3a78739aa9eabfcc227add9b58b46c3557

> podman pull public.ecr.aws/kafbat/kafka-ui:main
Trying to pull public.ecr.aws/kafbat/kafka-ui:main...
Getting image source signatures
Copying blob 1135967a89c6 done   |
Copying blob 4c7b034c6ae5 done   |
Copying blob 3a036b8e1e79 done   |
Copying blob cbdfebac0820 skipped: already exists
Copying blob 7cc56271c18a done   |
Copying blob 38a8310d387e skipped: already exists
Copying blob 764bda4300a8 done   |
Copying config 6e69348ba2 done   |
Writing manifest to image destination
6e69348ba2937a36268c39c11753d44d508f5ce1dd326c27fa624a9413774a9a

GHCR (no issues):

> podman pull ghcr.io/kafbat/kafka-ui:v1.1.0
Trying to pull ghcr.io/kafbat/kafka-ui:v1.1.0...
Getting image source signatures
Copying blob 38a8310d387e skipped: already exists
Copying blob e609739c34cc skipped: already exists
Copying blob c044377999bc skipped: already exists
Copying blob 2da0940f3337 skipped: already exists
Copying blob 390e12378b67 skipped: already exists
Copying blob 87e8804acfee skipped: already exists
Copying blob cbdfebac0820 skipped: already exists
Copying config e3af17c73f done   |
Writing manifest to image destination
e3af17c73faabef07dbfa441b3b84e3771881627b63accb125f3bae2e1d3d485

> podman pull ghcr.io/kafbat/kafka-ui:v1.0.0
Trying to pull ghcr.io/kafbat/kafka-ui:v1.0.0...
Getting image source signatures
Copying blob a0e7c84ba2ab skipped: already exists
Copying blob e4de655b8fb2 done   |
Copying blob 1c7dbb3ae0ba skipped: already exists
Copying blob cb513fcbaa80 skipped: already exists
Copying blob 186dc06b6e3a skipped: already exists
Copying blob 4d6bb9a3d7b9 skipped: already exists
Copying blob 4abcf2066143 skipped: already exists
Copying config e2a083fd41 done   |
Writing manifest to image destination
e2a083fd41d78a7282f1076c223a174a237ecd3f1742ad04fc5fdfcacbc093d1

> podman pull public.ecr.aws/kafbat/kafka-ui:main
Trying to pull public.ecr.aws/kafbat/kafka-ui:main...
Getting image source signatures
Copying blob 1135967a89c6 done   |
Copying blob 4c7b034c6ae5 done   |
Copying blob 3a036b8e1e79 done   |
Copying blob cbdfebac0820 skipped: already exists
Copying blob 7cc56271c18a done   |
Copying blob 38a8310d387e skipped: already exists
Copying blob 764bda4300a8 done   |
Copying config 6e69348ba2 done   |
Writing manifest to image destination
6e69348ba2937a36268c39c11753d44d508f5ce1dd326c27fa624a9413774a9a

Expected behavior

Version tagged container image platforms at public.ecr.aws/kafbat/kafka-ui are not messed up.

Your installation details

Linux on amd64 platform.
Indirectly related to #242

Steps to reproduce

docker pull or docker run any of pull public.ecr.aws/kafbat/kafka-ui:v1.0.0 and pull public.ecr.aws/kafbat/kafka-ui:v1.1.0 container images on Linux amd64 platform.

Screenshots

No response

Logs

No response

Additional context

> podman images
REPOSITORY                      TAG         IMAGE ID      CREATED        SIZE
public.ecr.aws/kafbat/kafka-ui  main        6e69348ba293  14 hours ago   328 MB
public.ecr.aws/kafbat/kafka-ui  v1.1.0      f106987cdb9d  3 weeks ago    325 MB
ghcr.io/kafbat/kafka-ui         v1.1.0      e3af17c73faa  3 weeks ago    441 MB
public.ecr.aws/kafbat/kafka-ui  v1.0.0      7d264e4a5ec4  10 months ago  295 MB
ghcr.io/kafbat/kafka-ui         v1.0.0      e2a083fd41d7  10 months ago  393 MB
@yermulnik yermulnik added status/triage Issues pending maintainers triage type/bug Something isn't working labels Feb 3, 2025
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

Hi yermulnik! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues.
Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

@yermulnik
Copy link
Contributor Author

yermulnik commented Feb 3, 2025

Apologies I missed to check this at once in scope of #242 😢

@Haarolean
Copy link
Member

Apologies I missed to check this at once in scope of #242 😢

No worries. That's related to the fact I pushed these images manually once we renamed the repo, I'll reupload soon

@Haarolean Haarolean self-assigned this Feb 3, 2025
@Haarolean
Copy link
Member

@yermulnik PTAL

$ docker buildx imagetools inspect public.ecr.aws/kafbat/kafka-ui:v1.0.0
Name:      public.ecr.aws/kafbat/kafka-ui:v1.0.0
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:9f2b621d1be787dc5f0e91a55b0b8347fc4cf1e2cf0ec464b20a18f0168739b4

Manifests:
  Name:      public.ecr.aws/kafbat/kafka-ui:v1.0.0@sha256:7272cbc8696669cce6294883d692af17baffa5ba3e96eb9cbff79842dbaac0c5
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/amd64

  Name:      public.ecr.aws/kafbat/kafka-ui:v1.0.0@sha256:371775cacaa32fe2e2e20a1000c918f1c135d05fc5953fda93ceed173cbb56c7
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm64

@Haarolean Haarolean added scope/infra CI, CD, dev. env, etc. status/feedback-requested and removed type/bug Something isn't working status/triage/manual Manual triage in progress labels Feb 4, 2025
Copy link

kapybro bot commented Feb 4, 2025

Further user feedback is requested. Please reply within 7 days or we might close the issue.

@kapybro kapybro bot assigned yermulnik and unassigned Haarolean Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/infra CI, CD, dev. env, etc. status/feedback-requested status/triage/completed Automatic triage completed
Projects
None yet
Development

No branches or pull requests

2 participants