mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 07:58:59 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/linux/apptainer-build
Normal file
41
tldr/linux/apptainer-build
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apptainer build
|
||||
|
||||
> Build Apptainer container images.
|
||||
> More information: <https://apptainer.org/docs/user/main/cli/apptainer_build.html>.
|
||||
|
||||
- Build a container from a definition file:
|
||||
|
||||
`apptainer build {{path/to/image.sif}} {{path/to/definition.def}}`
|
||||
|
||||
- Build a container from Docker Hub:
|
||||
|
||||
`apptainer build {{path/to/image.sif}} docker://{{image}}:{{tag}}`
|
||||
|
||||
- Build a container from the Container Library:
|
||||
|
||||
`apptainer build {{path/to/image.sif}} library://{{user/collection/container}}:{{tag}}`
|
||||
|
||||
- Build a writable [s]andbox directory instead of an image file:
|
||||
|
||||
`apptainer build {{[-s|--sandbox]}} {{path/to/directory}} docker://{{image}}:{{tag}}`
|
||||
|
||||
- Build a container without using the cache:
|
||||
|
||||
`apptainer build --disable-cache {{path/to/image.sif}} docker://{{image}}:{{tag}}`
|
||||
|
||||
- [F]orce overwrite an existing image file:
|
||||
|
||||
`apptainer build {{[-F|--force]}} {{path/to/image.sif}} {{path/to/definition.def}}`
|
||||
|
||||
- Build using [f]akeroot for unprivileged builds:
|
||||
|
||||
`apptainer build {{[-f|--fakeroot]}} {{path/to/image.sif}} {{path/to/definition.def}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`apptainer build {{[-h|--help]}}`
|
||||
Reference in New Issue
Block a user