我的主机运行的是 Windows 10 Pro,版本 2004,内部版本 19041.1052。我启用了 Hyper-V 和容器 Windows 功能。我正在运行 Docker Desktop 4.0.0 (67817),引擎 20.10.8。我选择了 Windows Containers 的引擎。我已拉取标记的 Nano Server 映像2004-amd64
(内部版本 19041.1165)。我有一个锐龙 9 CPU。当我尝试从以管理员身份运行的 PowerShell 中使用此命令运行映像时:
docker run -it mcr.microsoft.com/windows/nanoserver:2004-amd64 --rm cmd.exe
我收到此错误:
C:\PROGRAM FILES\DOCKER\docker.exe: Error response from daemon: container
52d69ec5645099a0c729a285c1192f4cb909f167d36efa4cf60cf9cc82c6cd56 encountered an error
during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot
find the file specified. (0x2).
搜索此错误会产生一些问题,这些问题来自无法构建图像的人。我所见过的没有一个可以接受的答案,而且这些建议似乎都与我无关(大多数都专注于编辑 Dockerfile)。
我没有嫁给这个图像标签。我想运行某个版本的 Nano Server 或 Server Core。可能吗?我该怎么做?