standard_init_linux.go: exec user process caused: no such file or directory
This error matches known, documented patterns with reliable solutions.
Quick Fix (Most Common Solution)
- Convert script to Unix line endings
- Add proper shebang (#!/bin/sh)
Seeing "standard_init_linux.go: exec user process caused: no such file or directory"? This error can be frustrating, but it's usually fixable. It typically affects your development workflow or system. Below you'll find clear, step-by-step solutions to resolve this issue.
What This Error Means
The shell or executable in the container cannot be found or executed.
Frequently documented in developer and vendor support forums.
Not affiliated with browser, OS, or device manufacturers.
New here? Learn why exact error messages matter →
Common Causes
- Wrong line endings in script (CRLF)
- Missing shebang in script
- Binary for wrong architecture
How to Fix
- Convert script to Unix line endings
- Add proper shebang (#!/bin/sh)
- Build for correct platform
Last reviewed: April 2026 How we review solutions
Version Notes
BuildKit Multi-Platform vs Single-Platform: Choosing the Right Build Strategy
docker buildx build --platform linux/arm64 . on an amd64 CI runner builds an arm64 image correctly, but if that image is accidentally pushed without specifying platform and then pulled on an amd64 server, exec format error appears at container startup — not during the build.
The docker inspect image-name command shows the compiled architecture of any local image under the Architecture field. For images pulled from a registry with multi-arch manifests, docker manifest inspect image-name lists all available platform variants and which one Docker pulled for your current host.
Go binaries and statically compiled Rust/C applications are the most portable: they can be cross-compiled to produce arm64 binaries on amd64 machines without QEMU emulation. Python and Node.js containers are interpreted and architecture-independent at the application layer, but their base images (the Python or Node.js interpreter itself) must match the target architecture. Alpine-based images (node:18-alpine, python:3.11-alpine) are available for both amd64 and arm64 as multi-arch manifests automatically.Optional follow-up
Some users ask whether saving fixes for recurring errors would be useful when the same issue appears again.
Was this explanation helpful?
Frequently Asked Questions
What causes wrong line endings?
Editing files on Windows without configuring Git or editor properly.
How do I fix line endings?
Use dos2unix or sed to convert CRLF to LF.
Related Resources
Also Known As
- Docker container error
- Docker build failure
- Container runtime error
- Docker daemon error
Common Search Variations
- "docker container won't start"
- "docker build error fix"
- "docker image not found"
- "container exited with error"
- "docker daemon not responding"
- "fix docker network error"
Related Errors
Still Stuck?
Paste a different error message or upload a screenshot to get help instantly.