无法安装WindowsServerCore Container Image

时间:2017-07-07 16:02:36

标签: docker docker-windows windows-container docker-aws

我正在尝试使用以下命令在我的WIndows 2016服务器上安装windowsServercore映像。

Install-containerImage WindowsServerCore

运行时遇到错误信息。

Install-ContainerOSImage : The term 'Install-ContainerOSImage' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

发现文章

有一个解决方法

https://social.msdn.microsoft.com/Forums/en-US/fc571caf-af13-45ed-a021-cfcfcf532645/the-term-installcontainerosimage-is-not-recognized-as-the-name-of-a-cmdlet-on-build-build-14385?forum=windowscontainers

在运行新文章中的命令时,会收到不同的错误消息。

docker load -i nanoserver.tar.gz

58684737b3d1: Loading layer [==================================================>] 358.4 MB/358.4 MB
re-exec error: exit status 1: output: ProcessBaseLayer C:\ProgramData\docker\windowsfilter\dc41572502daedc9c628b56d1f369
ee804e901159b053d5e082e31e339ae822d: A required certificate is not within its validity period when verifying against the
 current system clock or the timestamp in the signed file.

我的系统时间正确,我在AWS上运行Windows 2016服务器。

感谢您解决此问题的任何帮助。

2 个答案:

答案 0 :(得分:3)

您可以使用bellow命令将映像提取到Docker主机,即Windows Server 2016:

docker pull microsoft / windowsservercore

答案 1 :(得分:0)

使用以下命令:

docker run -t -i mcr.microsoft.com/windows/nanoserver:1809

这将从官方Microsoft DockerHub存储库加载Nano Server:

https://hub.docker.com/_/microsoft-windows-nanoserver