How-to-simply...

Fix Standard_init_linux.go exec user process caused no such file In Container

  • 1 Ensure entrypoint.sh has unix line endings (LF only)
  • 2 Try ENTRYPOINT ["sh", "entrypoint.sh"] in Debian based images. /bin/bash may be missing
  • N One way to verify if your script is being executed, is to have a simple echo "Hello world" in your script and run the image locally.
    podman run -it <image> /bin/bash for ubuntu.
    podman run -it <image> /bin/sh for debian.

References