Is your feature request related to a problem? Please describe.
There are situations where your OCI-SIF runtime for a Docker container built from a Dockerfile cannot be used, such as HPC environments.
In this case, apptainer instance run is a handy way to use runscripts instead of startscripts to support ENTRYPOINT and CMD directives in Dockerfiles with detached containers running in the background.
This is not present in Singularity, not being able to use detached containers running in ENTRYPOINT and CMD, preventing interoperability.
Before you request a feature...
Is your feature request related to a problem? Please describe.
There are situations where your OCI-SIF runtime for a Docker container built from a Dockerfile cannot be used, such as HPC environments.
In this case,
apptainer instance run
is a handy way to userunscripts
instead ofstartscripts
to supportENTRYPOINT
andCMD
directives in Dockerfiles with detached containers running in the background.This is not present in Singularity, not being able to use detached containers running in
ENTRYPOINT
andCMD
, preventing interoperability.Describe the solution you'd like
Replicate https://github.com/apptainer/apptainer/pull/1401/files / https://github.com/apptainer/apptainer/issues/959
Describe alternatives you've considered
singularity instance start [...] ENTRYPOINT
doesn't even work. Usingtmux
/screen
withsingularity run
is very ugly.