无法将 windows docker 图像推送到 Artifactory
Unable to push windows docker image to Artifactory
我正在为 Windows 使用支持 Windows 容器的 Docker 测试版。当我尝试将 Windows 图像(基于 microsoft/windowsservercore 图像)推送到我们的 Artifactory 存储库时,出现错误。它允许推送所有层,但随后失败说明:
manifest invalid: manifest invalid
软件版本:
- Docker 对于 Windows 1.12.3-beta29.3 (8418)
- Artifactory Enterprise 4.8.0 修订版 40210
有没有什么方法可以查看它试图推送到服务器的清单是什么样子的?有谁知道它为什么会失败,如果这只是 Artifactory 还不支持的东西?
我在 Artifactory 日志中发现了这个:
2016-11-18 22:25:27,921 [http-nio-8081-exec-14878] [ERROR] (o.j.r.d.v.h.DockerManifestSyncer:47) - Could not find temp blob 'my-windows-image/_uploads/sha256__d33fff6043a134da85e10360f9932543f1dfc0c3a22e1edd062aa9b088a86c5b'
2016-11-18 22:25:27,921 [http-nio-8081-exec-14878] [ERROR] (o.j.r.d.v.r.h.DockerV2LocalRepoHandler:262) - Failed syncing manifest blobs, canceling manifest upload
这是外层的问题。本质上,您正在上传的图像的清单引用了至少一个(外部)层,该层不打算上传(如本 pull request). Artifactory expects all the layers referenced in the manifest to be uploaded. As a result of those two factors, you are seeing the error you posted. The concept of these foreign layers is somewhat new and seems to be used almost exclusively for Windows-specific images. There is already an open JIRA (RTFACT-10305 中所述)以供 Artifactory 支持。
我正在为 Windows 使用支持 Windows 容器的 Docker 测试版。当我尝试将 Windows 图像(基于 microsoft/windowsservercore 图像)推送到我们的 Artifactory 存储库时,出现错误。它允许推送所有层,但随后失败说明:
manifest invalid: manifest invalid
软件版本:
- Docker 对于 Windows 1.12.3-beta29.3 (8418)
- Artifactory Enterprise 4.8.0 修订版 40210
有没有什么方法可以查看它试图推送到服务器的清单是什么样子的?有谁知道它为什么会失败,如果这只是 Artifactory 还不支持的东西?
我在 Artifactory 日志中发现了这个:
2016-11-18 22:25:27,921 [http-nio-8081-exec-14878] [ERROR] (o.j.r.d.v.h.DockerManifestSyncer:47) - Could not find temp blob 'my-windows-image/_uploads/sha256__d33fff6043a134da85e10360f9932543f1dfc0c3a22e1edd062aa9b088a86c5b'
2016-11-18 22:25:27,921 [http-nio-8081-exec-14878] [ERROR] (o.j.r.d.v.r.h.DockerV2LocalRepoHandler:262) - Failed syncing manifest blobs, canceling manifest upload
这是外层的问题。本质上,您正在上传的图像的清单引用了至少一个(外部)层,该层不打算上传(如本 pull request). Artifactory expects all the layers referenced in the manifest to be uploaded. As a result of those two factors, you are seeing the error you posted. The concept of these foreign layers is somewhat new and seems to be used almost exclusively for Windows-specific images. There is already an open JIRA (RTFACT-10305 中所述)以供 Artifactory 支持。