What do exit codes 126 and 127 mean for a container?
IntermediateProductionOperations, Rootless & Podman
Answer
127 = command not found (bad path, missing interpreter, or CRLF line endings turning #!/bin/sh\r into a nonexistent interpreter). 126 = found but not executable (missing chmod +x or noexec mount). Fix with COPY --chmod=755 and ensure LF endings (.gitattributes: *.sh text eol=lf).
More on Operations, Rootless & Podman
How do you set up rootless Docker on Ubuntu?IntermediateHow do rootless containers handle privileged ports and networking?AdvancedWhat is Podman Quadlet?AdvancedCan Podman run Docker Compose files?IntermediateWhat is a Podman pod?IntermediateHow do you remove all Docker containers, images and volumes safely in a dev environment?Beginner