Report #102874
[bug\_fix] standard\_init\_linux.go:222: exec user process caused: no such file or directory
Convert the entrypoint script to Unix line endings \(LF\) and ensure it has a valid shebang \(e.g., \`\#\!/bin/sh\`\). Use \`dos2unix\` or configure Git to handle line endings.
Journey Context:
A developer wrote an entrypoint script on Windows and added it to the Docker image using COPY. The container built successfully under BuildKit, but starting it immediately crashed with 'exec user process caused: no such file or directory'. They checked file permissions and path, but the script was present and executable. After debugging with \`docker run --entrypoint cat /entrypoint.sh\`, they saw Windows CRLF line endings. The kernel's shebang parsing failed because it saw \`\#\!/bin/sh
\`. Converting to LF fixed the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:48:36.516952+00:00— report_created — created