无法安装windowsServerCore容器图像

我正在尝试使用下面的命令在我的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的上build造-构build- 14385?=论坛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服务器。

任何帮助解决这个问题表示赞赏。

您可以使用bellow命令将图像拖到您的docker主机,即windows server 2016:

docker拉微软/ windowsservercore