Skip to content

Commit 85248f2

Browse files
committed
Update run.d
1 parent b736121 commit 85248f2

File tree

1 file changed

+7
-17
lines changed
  • docs/software/container-engine

1 file changed

+7
-17
lines changed

docs/software/container-engine/run.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,25 @@ Specifying the `--environment` option to the Slurm command (e.g., `srun` or `sal
44

55
```console
66
$ srun --environment=$SCRATCH/edf/debian.toml cat /etc/os-release
7-
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
8-
NAME="Debian GNU/Linux"
9-
VERSION_ID="12"
10-
...
117
```
128

139
`--environment` can be a relative path from the current working directory (i.e., where the Slurm command is executed).
1410
A relative path should be prepended by `./`:
1511

1612
```console
17-
$ ls
18-
debian.toml
19-
20-
$ srun --environment=./debian.toml cat /etc/os-release
21-
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
22-
NAME="Debian GNU/Linux"
23-
VERSION_ID="12"
24-
...
13+
$ srun --environment=./debian.toml cat /etc/os-release # (1)
2514
```
2615

16+
1. Assuming `debian.toml` is in the current folder.
17+
2718
If an EDF is located in the [EDF search path][ref-ce-edf-search-path], `--environment` also accepts the EDF filename without the `.toml` extension:
2819

2920
```console
30-
$ srun --environment=debian cat /etc/os-release
31-
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
32-
NAME="Debian GNU/Linux"
33-
VERSION_ID="12"
34-
...
21+
$ srun --environment=debian cat /etc/os-release # (1)
3522
```
3623

24+
1. Assuming `debian.toml` is in the EDF search path.
25+
3726
### Use from batch scripts
3827

3928
The recommended approach is to use `--environment` as part of the Slurm command (e.g., `srun` or `salloc`):
@@ -147,6 +136,7 @@ To use an image from a different registry, the corresponding registry URL has to
147136

148137
1. Assuming `example.toml` is already written at `${HOME}/.edf`.
149138

139+
150140
* On the command line
151141

152142
```console

0 commit comments

Comments
 (0)