我使用最简单的docker文件从另一个图像创建一个docker图像:
FROM <source image>
映像成功构建和标记。但是,当我将其推送到Azure容器注册表并提取映像时,我收到以下错误:
Failed to pull image "<tagged image name>": rpc error: code = Unknown desc = failed to pull and unpack image "<tagged image name>": failed to extract layer sha256:<layer id>: link /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/2700/fs/Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/2700/fs/Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory: unknown
来自同一注册表的原始映像将成功提取并运行。
你知道我做错了什么吗
2条答案
按热度按时间drnojrws1#
Azure容器注册表是一个专用注册表。因此,请确保在提取映像之前登录到注册表。请参阅链接了解验证https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli的方法
um6iljoc2#
我在Linux节点上运行Windows容器后遇到了同样的问题。请确保您的Windows容器正在Windows节点上运行。