Skip to main content

CRE-2025-0127

Container exited 127 due to command not found (bad entrypoint/command)Medium
Impact: 3/10
Mitigation: 3/10

CRE-2025-0127View on GitHub

Description

Exit code 127 indicates the configured command/entrypoint was not found in the image or PATH.

New or misconfigured deployments commonly hit this and immediately crash.


Cause

  • Typo in command/entrypoint or wrong binary path.
  • Missing executable in the image or non-executable file permissions.
  • Different base image where the tool isn’t installed by default.

Mitigation

  • Verify the binary exists and is executable (`chmod +x`).
  • Use absolute paths or fix PATH; test with `docker run` locally.
  • Add pre-deploy checks in CI to validate entrypoint presence.

References