生成错误:清单列表项中未知的库/ nginx没有匹配的清单

时间:2019-02-27 01:32:10

标签: docker nginx dockerfile

查看从托管Linux预览到托管VS2017的构建定义的代理程序池更改,我们的构建因以下错误而开始失败。请让我知道是否有人知道解决方案吗?

FROM nginx

最新:从库/ nginx中提取

清单清单条目中找不到未知的匹配清单

[错误] C:\ Program Files \ Docker \ docker.exe失败,返回码:1

1 个答案:

答案 0 :(得分:0)

托管的VS2017为您提供了一个在Windows Server 2016上运行的VM,并且如果您检查清单中的“ nginx” docker映像,如下所示-

docker manifest inspect nginx
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 948,
         "digest": "sha256:5b49c8e2c890fbb0a35f6050ed3c5109c5bb47b9e774264f4f3aa85bb69e2033",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 948,
         "digest": "sha256:eb5069e1c31931141bc0bf662c3cc9bf066301fc6e32c5496698e3ded105bf57",
         "platform": {
            "architecture": "arm",
            "os": "linux",
            "variant": "v7"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 948,
         "digest": "sha256:c8edfc15df5e0f4d7277a4760d94efd6a1d6b791c88f4dac484ca41ac35488ec",
         "platform": {
            "architecture": "arm64",
            "os": "linux",
            "variant": "v8"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 948,
         "digest": "sha256:f29ce102a2241ded2bcf9c0859993cb07b274b9991ac8f82ea11f90a3a091d43",
         "platform": {
            "architecture": "386",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 948,
         "digest": "sha256:342ddde788738b726daf52577c2a67ad255ea907c10514b4989a68775d2be7c3",
         "platform": {
            "architecture": "ppc64le",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 948,
         "digest": "sha256:23e1d058ec0a775cb7c803a3acdabcce3c05fd4e0f199e8ffd18e8ff2a6a019a",
         "platform": {
            "architecture": "s390x",
            "os": "linux"
         }
      }
   ]
}

受支持的操作系统仅为Linux(在各自的体系结构上)。

因此您要么必须使用基于Windows的父映像来开发自定义nginx映像,然后将其在Dockerfile中用于上述构建。

这是在Microsoft / windowsservercore:ltsc2016之上构建的示例nginx图像