Skip to content

Commit d076557

Browse files
committed
minor polish
1 parent baecba4 commit d076557

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

docs/hpc/14_tutorial_apptainer/03_apptainer_files.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Apptainer allows additional directories to be mounted using the `-B` option:
2727

2828
```bash
2929
apptainer shell \
30-
-B /scratch/(NetID):/data \
30+
-B /scratch/<NetID>:/data \
3131
/share/apps/images/ubuntu-24.04.3.sif
3232
```
3333

@@ -39,12 +39,13 @@ After entering the container, you can verify the mount:
3939
ls /data
4040
```
4141

42-
Any files stored in `/scratch <NetID>` on the host system will be accessible through `/data` inside the container.
42+
Any files stored in `/scratch/<NetID>` on the host system will be accessible through `/data` inside the container.
4343

4444
The source and destination paths do not need to be the same. This can be useful when an application expects data to be located in a specific directory within the container.
4545

46-
## Why This Matters
46+
::: info
4747

4848
Container images are typically read-only. Research data, scripts, notebooks, and output files usually remain outside the container.
4949

5050
By making host directories available inside the container, Apptainer allows applications to access data stored on Torch while maintaining a reproducible software environment.
51+
:::

docs/hpc/14_tutorial_apptainer/04_docker_images.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apptainer pull pytorch.sif docker://pytorch/pytorch:latest
1616

1717
During the pull process, Apptainer downloads the Docker image layers and converts them into a single SIF image:
1818

19-
```text
19+
```bash
2020
INFO: Converting OCI blobs to SIF format
2121
INFO: Starting build...
2222
INFO: Fetching OCI image...

docs/hpc/14_tutorial_apptainer/05_customize_container_environments.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apptainer shell \
2626
python.sif
2727
```
2828

29-
Verify that numpy is not installed in the base image:
29+
Verify that `numpy` is not installed in the base image:
3030

3131
```bash
3232
python -c "import numpy"
@@ -38,7 +38,7 @@ You should see:
3838
ModuleNotFoundError: No module named 'numpy'
3939
```
4040

41-
Install numpy:
41+
Install `numpy`:
4242

4343
```bash
4444
pip install numpy

0 commit comments

Comments
 (0)