Skip to content

Commit 2193024

Browse files
authored
Update 02_running_containers.mdx
1 parent 02bb9dc commit 2193024

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

docs/hpc/15_tutorial_apptainer/02_running_containers.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ Depending on how the image was built, this command may produce output, launch an
3939

4040
The important point is that with `apptainer run`, Apptainer executes the default action defined by the image creator.
4141

42-
Sometimes, however, we want to run a specific command instead of the image's default action. In those cases, we use `apptainer exec`.
42+
In cases we want to run a specific command, use `apptainer exec`.
4343

4444
## Running Specific Commands Within a Container
4545

46-
Unlike `apptainer run`, which executes the image's default action, `apptainer exec` allows us to specify exactly what command should run inside the container.
46+
apptainer exec` allows us to specify exactly what command should run inside the container.
4747

4848
For example:
4949

@@ -65,11 +65,9 @@ Both `apptainer run` and `apptainer exec` start a container, but they serve diff
6565

6666
`apptainer exec` allows you to specify exactly which command should run inside the container. Rather than relying on the image's default behavior, you provide the command directly.
6767

68-
In practice, `apptainer exec` is often used when working on HPC systems because it provides more control over what is executed inside the container environment.
69-
7068
## Opening an Interactive Shell Within a Container
7169

72-
Sometimes it is useful to explore a container interactively. Apptainer provides the `apptainer shell` command for this purpose.
70+
It is useful to explore a container interactively. Apptainer provides the `apptainer shell` command for this purpose.
7371

7472
Launch a shell inside the Ubuntu container:
7573

0 commit comments

Comments
 (0)