Container exits instantly with code 126.
The command inside the image exists but is not executable by that user.
docker run --rm <image> ls -la /entrypoint.shRUN chmod +x /entrypoint.shhead -1 /entrypoint.sh # #!/bin/sh or #!/bin/bashSet the exec bit in the Dockerfile, not in CI tricks.
NinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog