Skip to content

Commit

Permalink
Docs: describe data files apptainer
Browse files Browse the repository at this point in the history
eng-det-oncall-support 3 Oct 2024
  • Loading branch information
tara-det-ai committed Oct 11, 2024
1 parent 2356f91 commit a81364d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docs/setup-cluster/slurm/singularity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,48 @@ You can view the current set of Docker image names in the cache with the ``-l``
.. code:: bash
manage-enroot-cache -s /shared/enroot -l
.. _singularity-apptainer-shells:

******************************
Singularity/Apptainer Shells
******************************

When using Determined AI with Singularity/Apptainer for interactive shells, there are some important
behaviors to understand, particularly regarding home directories and file locations.

Home Directory Binding
======================

Singularity/Apptainer automatically binds the user's home directory to the container. This means:

- When you start a shell, you will be placed in your actual system home directory, not in the
working directory where files are copied.
- This behavior differs from Docker containers and can be confusing if you're expecting to see your
files immediately.

File Locations
==============

When using the ``det shell start`` command with the ``-c`` option:

- Files are correctly copied to the container, typically to ``/run/determined/train/model/``.
- Due to the home directory binding, you won't see these files in your initial working directory.
- To access your files, navigate to ``/run/determined/train/model/`` once your shell starts.

Usage Example
=============

To start a shell and access your copied files:

.. code:: bash
det shell start --config-file config.yaml -c .
cd /run/determined/train/model
.. note::

Remember that your initial working directory will be your home directory, not where the files
were copied. Always navigate to the correct directory to find your copied files.

For more information on shell configuration options, refer to :ref:`command-notebook-configuration`.

0 comments on commit a81364d

Please sign in to comment.