1

在尝试从 jfrog docker pull 图像时,我们使用以下配置创建了一个远程存储库,其中包含源工件:{jfrog-url} 和 repo:{source-repo}:

{
 "key": "{repo-name}",
 "rclass": "remote",
 "packageType": "docker",
 "blockPushingSchema1": false,
 "username": "{username}",
 "password": "{password}",
 "allowAnyHostAuth": true,
 "repoLayoutRef": "build-default",
 "enableTokenAuthentication": true,
 "url": "{jfrog-url}/artifactory/api/docker/{source-repo}"
}

在它创建之后,我们尝试使用 docker pull 到这个 repo

GET: {jfrog-url}/artifactory/api/docker/{repo-name}/v2/{docker-image-name}/manifests/{docker-image-tag}

  如果为 docker pull 抛出此消息

{
    "errors": [
        {
            "code": "MANIFEST_UNKNOWN",
            "message": "The named manifest is not known to the registry.",
            "detail": {
                "manifest": "image-name"
            }
        }
    ]
}

PS:上述解决方案适用于云托管的 jfrog,但不适用于本地

4

0 回答 0