๐Ÿ”ฅError

Apple M1 Docker Build Error

harry.93 2022. 1. 13. 23:38
๋ฐ˜์‘ํ˜•

M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)'

 

M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' Issue

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=admi...

stackoverflow.com

 

Apple M1 ์นฉ์„ ์‚ฌ์šฉํ•˜๋Š” ํ™˜๊ฒฝ์—์„œ Docker ์ด๋ฏธ์ง€ ๋นŒ๋“œ ์‹œ, ๋ฌธ์ œ ๋ฐœ์ƒ. ๋ฆฌ๋ˆ…์Šค ํ™˜๊ฒฝ์—์„œ ํ•ด๋‹น ์ด๋ฏธ์ง€๊ฐ€ ๊ตฌ๋™์ด ์•ˆ๋˜๋ฉฐ ํ™˜๊ฒฝ์ด ๋งž์ง€ ์•Š๋‹ค๋Š” ์—๋Ÿฌ๋ฅผ ๋ฑ‰์–ด๋‚ด์—ˆ๋‹ค. 

์กฐ๊ธˆ๋งŒ ๊ตฌ๊ธ€๋ง ํ•ด๋ณด๋‹ˆ ๋ฐ”๋กœ ๋‚˜์™”๋Š”๋ฐ, ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ์ด๋ฏธ์ง€ ๋นŒ๋“œ ์‹œ, ํŠน์ • ํ‚ค์›Œ๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ๋œ๋‹ค.

as-is : docker build -t <username>/<imagename>

to-be : docker build --platform linux/amd64 -t <username>/<imagename>

--platform {ํ™˜๊ฒฝ๋ช…}

 

728x90
๋ฐ˜์‘ํ˜•