Hi All,
Quick notes on ENTRYPOINT/CMD...
The current way that Singularity handles the ENTRYPOINT and CMD (documented in the link from the other Dave) isn’t really correct from the point of view of expected behavior / OCI compliance. In Dockerfiles ENTRYPOINT and CMD can be additive. If you have an entry point listing a command ‘/bin/echo’ then CMD would give a default argument ‘hello’. If you run the container without args you get `echo hello`. If you provide args the override CMD and not ENTRYPOINT so `exec mycontainer boo` gives `echo boo`.
There’s a plan to correct this in Singularity 3.0 - so we can align with OCI things when handling docker/OCI images. It hasn’t been corrected in 2.x as behavior changes are preferred for major version increments.
Anyway - with regard to the though of instances, I don’t see there is a mapping like CMD==startscript and ENTRYPOINT==runscript, unless it was done in a way that allows us to replicate expected behavior (from a docker/oci standpoint) when the Singularity container is run.
Cheers,
Dave T