Apptainer: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 159: Line 159:


<!--T:40-->
<!--T:40-->
The <code>apptainer run</code> command will launch an Apptainer container, runs the <code>%runscript</code> defined for that container (if one is defined), and then runs the specific command (subject to the code in the <code>%runscript</code> script).  
When the <code>apptainer run</code> command launches the container, it first runs the <code>%runscript</code> defined for that container (if there is one), and then runs the specific command you specified. <br>
The <code>apptainer exec</code> command will not run the <code>%runscript</code>, even if one is defined in the container.


<!--T:41-->
<!--T:41-->
* Using the <code>apptainer run</code> command is preferred over using the <code>apptainer exec</code> command (which directly runs a command within the specified container).
We suggest that you aways use <code>apptainer run</code>.


<!--T:42-->
<!--T:42-->
rsnt_translations
56,420

edits

Navigation menu