无法将Windows docker映像推送到Artifactory [英] Unable to push windows docker image to Artifactory

查看:111
本文介绍了无法将Windows docker映像推送到Artifactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用支持Windows容器的Windows的beta版Docker.当我尝试将Windows映像(基于microsoft/windowsservercore映像)推送到我们的Artifactory存储库时,出现错误.它允许推送所有层,但随后失败:

I'm using the beta version of Docker for Windows that supports Windows containers. When I attempt to push a Windows image (based on the microsoft/windowsservercore image) to our Artifactory repository, I get an error. It allows pushing all the layers, but then fails stating:

manifest invalid: manifest invalid

软件版本:

  • 适用于Windows的Docker 1.12.3-beta29.3(8418)
  • Artifactory Enterprise 4.8.0修订版40210

是否可以通过某种方式查看要推送到服务器的清单的外观?有谁知道为什么它失败了,这是否仅仅是Artifactory还不支持的事情?

Is there some way to see what the manifest looks like that it is trying to push up to the server? Does anyone know why it is failing and if this is just something that's not supported by Artifactory yet?

我在Artifactory日志中发现了这一点:

I found this in the Artifactory logs:

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

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

推荐答案

这是外部图层的问题.本质上,您要上传的图像清单是在引用至少一个不打算上传的(外部)层(如此拉动请求). Artifactory希望上载清单中引用的所有图层.由于这两个因素,您看到的是您发布的错误.这些外来层的概念有些新,似乎几乎专门用于Windows特定的映像. Artifactory已经有一个开放的JIRA( RTFACT-10305 )支持此操作

This is an issue with foreign layers. Essentially the image's manifest you are uploading is referencing at least one (foreign) layer that is not meant to be uploaded (as described in this 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) for Artifactory to support this.

这篇关于无法将Windows docker映像推送到Artifactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆