sylabs / singularity

SingularityCE is the Community Edition of Singularity, an open source container platform designed to be simple, fast, and secure.
https://sylabs.io/docs/
Other
760 stars 98 forks source link

Support singularity instance run #3083

Closed ehfd closed 2 months ago

ehfd commented 3 months ago

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 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.

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. Using tmux/screen with singularity run is very ugly.

dtrudg commented 3 months ago

This is fair enough. @cyanezstange - would you be able to work on cherry-picking (and adapting) the apptainer changes onto CE?

ehfd commented 2 months ago

Thank you!