Linux command
apptainer-registry 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
apptainer registry list
Login
apptainer registry login --username [user] docker://[docker.io]
Login
apptainer registry login --username [user] --password-stdin oras://[registry.example.com]
Logout
apptainer registry logout docker://[docker.io]
Login
apptainer registry login --authfile [path/to/authfile.json] --username [user] docker://[registry.example.com]
说明
apptainer registry manages authentication to standalone OCI/Docker registries accessed via docker:// or oras:// protocols. It provides subcommands for logging in, logging out, and listing configured credentials for container registries. This command handles credentials separately from Apptainer's remote endpoints, allowing direct authentication against any OCI-compatible registry such as Docker Hub, GitHub Container Registry, or private registries.
参数
- -c, --config _string_
- Path to the registry configuration file (default ~/.apptainer/remote.yaml)
- -h, --help
- Display help for the registry command
FAQ
What is the apptainer-registry command used for?
apptainer registry manages authentication to standalone OCI/Docker registries accessed via docker:// or oras:// protocols. It provides subcommands for logging in, logging out, and listing configured credentials for container registries. This command handles credentials separately from Apptainer's remote endpoints, allowing direct authentication against any OCI-compatible registry such as Docker Hub, GitHub Container Registry, or private registries.
How do I run a basic apptainer-registry example?
Run `apptainer registry list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --config _string_ do in apptainer-registry?
Path to the registry configuration file (default ~/.apptainer/remote.yaml)