Skip to content

Commit 790ff98

Browse files
authored
Update 04_apptainer_with_uv.mdx
1 parent 7a28ff7 commit 790ff98

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/hpc/07_containers/04_apptainer_with_uv.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# Apptainer with uv
1+
# Apptainer with `uv`
22

33
## Overview
44

55
This page describes a workflow for using `uv` with an Apptainer overlay on Torch. Rather than installing packages directly into the container image, both `uv` and the Python environment are stored inside the writable overlay (`/ext3`), allowing the environment to persist across container sessions while leaving the base container unchanged.
66

77
This guide assumes you have already created an overlay and know how to launch it.
88

9-
## Install uv
9+
## `uv` vs. `conda`
10+
11+
This guide uses `uv` when the Apptainer image already has the basic environment needed to run your code, and the overlay only needs to store the Python environment. `uv` creates a standard `.venv` under `/ext3` and installs Python packages there. Use `conda` instead if your project needs conda-forge packages, compiled non-Python libraries, or an existing `environment.yml`.
12+
13+
## Install `uv`
1014

1115
Launch an Apptainer container with your overlay mounted in read-write mode:
1216

0 commit comments

Comments
 (0)