gpt4 book ai didi

docker - Artifactory 不要拉一些层的Windows图像

转载 作者:行者123 更新时间:2023-12-02 18:15:22 24 4
gpt4 key购买 nike

我想对离线客户端使用人工制品。
我已经安装了ws2016和docker。
我在这台机器上没有代理。

当我尝试提取图像时-docker开始下载(例如iis:nanoserver)除两层以外的所有层。客户端尝试直接从Internet下载它们。我找到原因-因为 list 中有指向Microsoft的 list 强URL或 list 中的其他资源)
该如何解决?

PS C:\Windows\system32> docker -l debug pull docker.artifactory.mydomain.com/microsoft/aci-helloworld:windows
windows: Pulling from microsoft/aci-helloworld
bce2fbc256ea: Retrying in 1 second
4a8c367fd46d: Retrying in 1 second
a8a90ba3a09e: Download complete
f694b71407bb: Download complete
1297730844f7: Download complete
757c0e11bc6f: Download complete
23daf900b85b: Download complete
4c4e4246add8: Download complete
739a2e484f2e: Download complete
726e0a195fd7: Download complete
8f617470c3a5: Download complete
1504687851f5: Download complete
dial tcp 23.64.230.126:443: connectex: No connection could be made because the target machine actively refused it.

docker 版本
Client:
Version: 17.03.1-ee-3
API version: 1.27
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64

Server:
Version: 17.03.1-ee-3
API version: 1.27 (minimum version 1.24)
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64
Experimental: false

manifest.json
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip",
"size": 252691002,
"digest": "sha256:bce2fbc256ea437a87dadac2f69aabd25bed4f56255549090056c1131fad0277",
"urls": [
"https://go.microsoft.com/fwlink/?linkid=837858"
]
},
{
"mediaType": "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip",
"size": 141758132,
"digest": "sha256:b0b5e40cb939a7befa4e01212d6f65f30022bbd04b5f15985b45ce9cfd3fcabc",
"urls": [
"https://go.microsoft.com/fwlink/?linkid=860052"
]

最佳答案

找到了Docker 17.6的官方解决方案

编辑daemon.json文件,添加以下行:

{
"allow-nondistributable-artifacts": ["myregistrydomain.com:5000"]
}

当您将镜像推送到列表中的注册表时,它们的不可分发层将被推送到注册表。

关于docker - Artifactory 不要拉一些层的Windows图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47172999/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com