Interview Prep/Docker/Containers that exit, crash or misbehave

`docker run` says `WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)` and the app is very slow.

BeginnerTroubleshootingContainers that exit, crash or misbehave
Answer

Likely causes → Running amd64 image under emulation on Apple Silicon.

Diagnose → docker image inspect img -f '{{.Architecture}}'; docker info | grep Architecture.

Fix → Pull a native arm64 variant (--platform linux/arm64), rebuild multi-arch, or enable Rosetta in Docker Desktop.

Prevent → Ship multi-arch images.

All Docker questions Roadmap: Docker & containers

More on Containers that exit, crash or misbehave