奇点和 github 包注册表

singularity and github package registry

如何使用奇点从 github 注册表中提取 docker 图像?

通常使用 docker 你必须生成一个令牌和 运行 类似于: docker pull docker.pkg.github.com/{etc}/{etc}/{etc} --username {mygithubusername} --password {generatedtoken}

然而, singularity pull docker://docker.pkg.github.com/{etc}/{etc}/{etc} --username {mygithubusername} --password {generatedtoken}

产生:Error for command "pull": accepts between 1 and 2 arg(s), received 5

对于私有注册表,您可以通过交互方式进行身份验证:

singularity pull --docker-login docker://docker.pkg.github.com/{etc}/{etc}/{etc}
Enter Docker Username: mygithubusername
Enter Docker Password:

或通过环境变量(对CI有用):

export SINGULARITY_DOCKER_USERNAME=mygithubusername
export SINGULARITY_DOCKER_PASSWORD=generatedtoken
singularity pull docker://docker.pkg.github.com/{etc}/{etc}/{etc}

有关更多详细信息,请参阅 the documentation