Why does my Docker container work on my machine but crash with 'exec format error' on the server?
0votes
Context
I build a Docker image on an Apple Silicon MacBook (M2) with docker build -t myapp . and push it to Docker Hub. The production server is a standard x86_64 Linux VPS that pulls and runs the same image.
Expected
The container should start on the server exactly as it does locally.
What Happened
On the server, docker run exits immediately with exec /usr/local/bin/node: exec format error in the logs.
No comments yet.