File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
docs/software/container-engine Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ The supported approach is to use `--environment` as part of the Slurm command (e
3333 ...
3434
3535 # Run job step
36- srun --environment=debian cat /etc/os-release
36+ srun --environment=ubuntu cat /etc/os-release
3737 ```
3838
3939Alternatively, the `--environment` option can also be specified with an `#SBATCH` option.
@@ -54,7 +54,7 @@ If an EDF is located in the search path, its name can be used in the `--environm
5454!!! example "Using `EDF_PATH` to control the default search path"
5555 ```console
5656 $ ls ~/.edf
57- debian .toml
57+ ubuntu .toml
5858
5959 $ ls ~/example-project
6060 fedora-env.toml
@@ -93,6 +93,8 @@ To do so, users may execute `enroot import docker://[REGISTRY#]IMAGE[:TAG]` to p
9393After the import is complete, images are available in Squashfs format in the current directory and can be used in EDFs:
9494
9595!!! example "Manually pulling an `nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04` image"
96+ 1. Pull the image.
97+
9698 ```console
9799 $ cd ${SCRATCH}
98100 $ enroot import docker://nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
@@ -104,13 +106,14 @@ After the import is complete, images are available in Squashfs format in the cur
104106
105107 $ ls *.sqsh
106108 nvidia+cuda+11.8.0-cudnn8-devel-ubuntu22.04.sqsh
109+ ```
110+
111+ 2. Create an EDF referencing the pulled image.
107112
108- $ cat ${HOME}/.edf/example.toml # (1)
113+ ```bash
109114 image = "/capstor/scratch/cscs/${USER}/nvidia+cuda+11.8.0-cudnn8-devel-ubuntu22.04.sqsh"
110115 ```
111116
112- 1. Assuming `example.toml` is already written at `${HOME}/.edf`.
113-
114117!!! note
115118 It is recommended to save images in `/capstor/scratch/cscs/${USER}` or its subdirectories before using them.
116119
You can’t perform that action at this time.
0 commit comments