Loading...
Loading...
standard_init_linux.go:211: exec user process caused "exec format error"This cryptic error usually means you are trying to run a binary or container built for a different CPU architecture than the one you are running on. Most commonly, it happens when running an 'linux/amd64' (Intel) container on an 'linux/arm64' (Apple Silicon) machine, or vice versa, without emulation.
Explicitly specify the target platform when building or pulling.
# Build for Intel/AMD64 (standard servers) regardless of your machine
docker build --platform linux/amd64 -t my-image .
# Run with platform flag
docker run --platform linux/amd64 my-imageIf your entrypoint is a shell script, ensure it has LF (Linux) line endings, not CRLF (Windows).
# Convert CRLF to LF using sed
sed -i 's/
$//' entrypoint.shEnsure your script starts with #!/bin/sh or #!/bin/bash.
#!/bin/sh
# The rest of your script...Fix this error faster with our free tool