You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/software/container-engine/run.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,15 +38,14 @@ VERSION_ID="12"
38
38
39
39
The recommended approach is to use `--environment` as part of the Slurm command (e.g., `srun` or `salloc`):
40
40
41
-
!!! example "Adding `--environment` to `srun`"
42
-
```bash
43
-
#!/bin/bash
44
-
#SBATCH --job-name=edf-example
45
-
...
41
+
```console
42
+
#!/bin/bash
43
+
#SBATCH --job-name=edf-example
44
+
...
46
45
47
-
# Run job step
48
-
srun --environment=debian cat /etc/os-release
49
-
```
46
+
# Run job step
47
+
srun --environment=debian cat /etc/os-release
48
+
```
50
49
51
50
Alternatively, the `--environment` option can also be specified with an `#SBATCH` option.
52
51
However, the support status is still **experimental** and may result in unexpected behaviors.
@@ -94,10 +93,8 @@ To choose an alternative image store path (e.g., to use a directory owned by a g
94
93
`EDF_IMAGESTORE` must be an absolute path to an existing folder.
95
94
96
95
!!! note
97
-
If the CE cannot create a directory for the image cache, it operates in cache-free mode, meaning that it pulls an ephemeral image before every container launch and discards it upon termination.
98
-
99
-
!!! note
100
-
Local container images are not cached. See the section below on how to use local images in EDF.
96
+
* If the CE cannot create a directory for the image cache, it operates in cache-free mode, meaning that it pulls an ephemeral image before every container launch and discards it upon termination.
97
+
* Local container images are not cached. See the section below on how to use local images in EDF.
101
98
102
99
### Pulling images manually
103
100
@@ -126,7 +123,7 @@ After the import is complete, images are available in Squashfs format in the cur
126
123
1. Assuming `example.toml` is already written at `${HOME}/.edf`.
127
124
128
125
!!! note
129
-
It is recommended to save images in `/capstor/scratch/cscs/${USER}` or its subdirectories before using them with the CE.
126
+
It is recommended to save images in `/capstor/scratch/cscs/${USER}` or its subdirectories before using them.
130
127
131
128
[](){#ref-ce-third-party-private-registries}
132
129
### Third-party and private registries
@@ -140,15 +137,18 @@ After the import is complete, images are available in Squashfs format in the cur
140
137
141
138
To use an image from a different registry, the corresponding registry URL has to be prepended to the image reference, using a hash character (#) as a separator:
142
139
143
-
!!! example "Using a third-party registry within an EDF"
0 commit comments