← 返回命令列表

Linux command

apptainer-pull 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

apptainer pull [path/to/image.sif] docker://[image]:[tag]

Example

apptainer pull [path/to/image.sif] library://[user/collection/container]:[tag]

Example

apptainer pull [path/to/image.sif] oras://[registry/namespace/image]:[tag]

Example

apptainer pull --arch [amd64|arm64|ppc64le] [path/to/image.sif] library://[image]:[tag]

Force overwrite

apptainer pull -F [path/to/image.sif] docker://[image]:[tag]

Example

apptainer pull --sandbox [path/to/directory] docker://[image]:[tag]

Example

apptainer pull --disable-cache [path/to/image.sif] docker://[image]:[tag]

说明

apptainer pull downloads container images from remote registries and converts them to the SIF (Singularity Image Format). Supported sources include Docker Hub (docker://), the Sylabs Container Library (library://), OCI registries (oras://), Shub (shub://), and HTTP/HTTPS URLs. Downloaded images are cached locally to speed up subsequent operations. The resulting SIF file is portable and can be run on any system with Apptainer installed.

参数

--arch _architecture_
Pull image for a specific CPU architecture.
--arch-variant _variant_
Pull image for a specific architecture variant (e.g., 6 for armv6).
-F, --force
Overwrite an existing local image file.
--sandbox
Create a writable directory instead of a SIF file.
--disable-cache
Do not use or update the image cache.
--no-https
Use HTTP instead of HTTPS for downloads.
--dir _path_
Download images to the specified directory.

FAQ

What is the apptainer-pull command used for?

apptainer pull downloads container images from remote registries and converts them to the SIF (Singularity Image Format). Supported sources include Docker Hub (docker://), the Sylabs Container Library (library://), OCI registries (oras://), Shub (shub://), and HTTP/HTTPS URLs. Downloaded images are cached locally to speed up subsequent operations. The resulting SIF file is portable and can be run on any system with Apptainer installed.

How do I run a basic apptainer-pull example?

Run `apptainer pull [path/to/image.sif] docker://[image]:[tag]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --arch _architecture_ do in apptainer-pull?

Pull image for a specific CPU architecture.