Solution skill
M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform
Complete solution
Shows how to fix m1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
[li Etzyio (top answer)] You can try to add this while building the docker images ` --platform linux/amd64 from https://github.com/google/cadvisor/issues/2763 https://github.com/Y2Data Context: Stack Overflow #66662820 (top answer, 391 votes, 17 answers): I just downloaded Docker Preview v3.1 https://docs.docker.com/docker-for-mac/apple-m1/ and tried running keycloak.
Steps
- [li Etzyio (top answer)] You can try to add this while building the docker images
2. from https://github.com/google/cadvisor/issues/2763 https://github.com/Y2Data
``` docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD [your value] quay.io/keycloak/keycloak:12.0.4 WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested ```
## When to use
Use this skill when you run into "M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform".
## When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
## Versions
Versions mentioned in the source: Preview v3.1, quay.iokeycloakkeycloak 12.0.4. If you are on something much newer or older, the details may have shifted.
## Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
## Sources
- https://github.com/google/cadvisor/issues/2763
- https://github.com/Y2Data
- https://docs.docker.com/docker-for-mac/apple-m1/
Evidence
Source: Stack Overflow #66662820 (top answer, 391 votes, 17 answers): I just downloaded Docker Preview v3.1 https://docs.docker.com/docker-for-mac/apple-m1/ and tried running keycloak. Anyone else running into this issue? `` docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD [your value] quay.io/keycloak/keycloak:12.0.4 WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Verified resolution: [li Etzyio (top answer)] You can try to add this while building the docker images `` --platform linux/amd64 `` from https://github.com/google/cadvisor/issues/2763 https://github.com/Y2Data
Source URL: https://stackoverflow.com/questions/66662820
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_t2gouVfJ582bFeZmmYgHaQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform <span>— Vectle</span></a>