Docker "OCI runtime create failed" in CI
The container image was fine but runc could not start the process inside it. The error wraps the real cause: an entrypoint binary that does not exist, is not executable, or is the wrong format.
What this error means
A container fails to start with OCI runtime create failed: ... starting container process caused: exec: "<cmd>": executable file not found in $PATH (or no such file or directory).
docker
docker: Error response from daemon: OCI runtime create failed: runc create failed: unable to start container process: exec: "myapp": executable file not found in $PATH: unknown.Common causes
Entrypoint/command binary missing
The CMD or ENTRYPOINT references a binary that is not installed or not on PATH in the image.
Wrong path or not executable
A script exists but lacks the executable bit, or the path is wrong inside the container.
Shebang/interpreter missing
A script references an interpreter (bash, python) that the minimal base image does not include.
How to fix it
Verify the entrypoint exists
- Inspect the image and run the binary path interactively.
- Confirm it is on PATH and executable.
Terminal
docker run --rm -it --entrypoint sh app -c "which myapp; ls -la /app"Fix the Dockerfile
- Install the interpreter or binary the entrypoint needs.
- Mark scripts executable and use an absolute path.
Dockerfile
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]How to prevent it
- Use absolute, executable entrypoint paths and ensure the base image contains every interpreter your scripts invoke. This is a deterministic image problem, not transient.
Related guides
Docker "standard_init_linux.go: exec format error" in CIFix the Docker "standard_init_linux.go: exec format error" in CI, caused by an architecture mismatch or an en…
Docker "exec format error" from wrong architecture in CIFix the Docker "exec format error" in CI builds and runs, caused by running an image built for a different CP…
Docker container "exited with code 137" (OOM) in CIFix a Docker container that "exited with code 137" at runtime in CI, caused by the out-of-memory killer termi…