来自 here我无法拉取或运行任何 Windows docker 镜像(从 Windows 或 Linux)
从 Windows cmd 尝试时:
拉:
docker pull mcr.microsoft.com/windows
Using default tag: latest
Error response from daemon: manifest for mcr.microsoft.com/windows:latest not found: manifest unknown: manifest tagged by "latest" is not found
运行:
docker run mcr.microsoft.com/windows:1903
Unable to find image 'mcr.microsoft.com/windows:1903' locally
1903: Pulling from windows
docker: no matching manifest for linux/amd64 in the manifest list entries.
See 'docker run --help'.
有什么建议吗?
最佳答案
docker: list 列表条目中没有与 linux/amd64 匹配的 list 。
表示此镜像只能在 windows 平台上运行。
虽然你在 windows 上工作,默认的 docker desktop
可能使用 linux container
,你应该切换到 windows container
然后使用 next 拉这个图像在桌面托盘上用鼠标右键单击 docker 图标:
切换后,你可以成功拉取那个镜像:
C:\Windows\System32>docker pull mcr.microsoft.com/windows:1903
1903: Pulling from windows
af1a530dff54: Downloading [==========> ] 738MB/3.657GB
123ee413bb26: Downloading [===================> ] 994.8MB/2.51GB
顺便说一句,看起来 latest
标签没有为这张图片设置,所以你将不得不使用细节版本,例如19.03.
关于windows - 无法运行或拉取 Windows docker 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67884118/