Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-02 00:22:05 +00:00
parent 359cefe811
commit fe5e4dcb31
6 changed files with 157 additions and 2 deletions

42
tldr/linux/apptainer Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apptainer
> Manage containers for HPC and scientific computing.
> Some subcommands such as `build`, `pull`, and `push` have their own usage documentation.
> More information: <https://apptainer.org/docs/user/main/cli.html>.
- Download a container from Docker Hub:
`apptainer pull {{path/to/image.sif}} docker://{{image}}:{{tag}}`
- Download a container from the Container Library:
`apptainer pull {{path/to/image.sif}} library://{{user/collection/container}}:{{tag}}`
- Build a container from a definition file:
`apptainer build {{path/to/image.sif}} {{path/to/definition.def}}`
- Start an interactive shell inside a container:
`apptainer shell {{path/to/image.sif}}`
- Execute a command inside a container:
`apptainer exec {{path/to/image.sif}} {{command}}`
- Run the default runscript of a container:
`apptainer run {{path/to/image.sif}}`
- Inspect a container's metadata:
`apptainer inspect {{path/to/image.sif}}`
- Display help:
`apptainer {{[-h|--help]}}`