我创建了一个基于servercore:ltsc2019-amd64的Windows镜像。
FROM
已经定位到我们的本地 docker mirrow 存储库。
我将创建的图像推送到我们的本地存储库。
我试图从目标机器上拉取图像,但总是失败,因为图像有两个部分。错误信息是:
dail tcp 204.79.197.219:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
有人知道为什么 docker 试图从微软而不是本地 repo 中提取这些部分吗?
谢谢 妮可
问题是 Docker 桌面设置。 默认情况下,它设置为从外部源加载图像的外部层,至少对于 Windows 图像。 您必须在 Docker 桌面设置(Docker 引擎)中更改它。
例如
{
"allow-nondistributable-artifacts": [
"repo-address"
],
"experimental": false
}
就我而言, 使用 nico answer,重新启动 docker dekstop,然后重新运行 powershell。 解决问题。