[Solved] The requested image’s platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested.

Following the recent purchase of a Macbook Air (A2337), I could no longer run my Docker images even they had been successfully compiled in VSCode.

The error encountered was “the requested image’s platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested.” It was reported that the exec user process caused “exec format error.”

Below is the solution that has sorted out the issue for me.

The Fix

FROM --platform=linux/amd64 (your-application-platform)
FROM --platform=linux/amd64 node:lts-alpine

--

--

--

Nadie.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Decode Obfuscated PowerShell Script in 5 mins

Paying technical debt and driving excellence with Chapter Days

YouTube Video | CSS3 in 10 days — Day 5

GPU on remote server(high level overview)

New Audacity 2.4.2 audio editor online by OffiDocs

Classifying GSoC Organizations using Python

Nx Cloud 2.0 Livestream — June 29th!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
gw151226

gw151226

Nadie.

More from Medium

Case studies of fixed capacity Queue and Changing the Queue capacity using Artificial Intelligence

File encryption using OpenSSL

Install digiKam 7.6.0 on Ubuntu / Linux Mint

digikam logo

How to catch connection to malignant host at Ubuntu machine