Why does my Docker container work on my machine but crash with 'exec format error' on the server?
intermediate
· 8 views ·
asked 3 days, 11 hours ago
by Tai
0
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.
Question comments
Short clarifications and small follow-ups about the question itself.
No comments on the question yet.
0 Answers
No answers yet. Be the first to help!