[Solved] M1 Docker Image Platform Mismatch with Host (ARM64)

0 min read 65 words

If you get the following error when trying to run a Docker container that was built on an M1 mac:

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

The solution

Then you can do simply add the following argument to your docker build command.

--platform linux/amd64

Where this goes

docker build --platform linux/amd64 -t your_docker_item .
Tags:
Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags

Recent Posts