问题描述
我正在尝试使用以下命令在WIndows 2016服务器上安装WindowsServercore映像.
I am trying to install windowsServercore images on my WIndows 2016 server using below command.
Install-containerImage WindowsServerCore
在运行时出现以下错误消息.
while running it got below error message.
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.
发现文章中有一个解决方法
Found there is a work around from article
在运行新文章中的命令时,会得到不同的错误消息.
While running the commands from the new article, getting different error message.
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服务器.
My system time is correct and i am running Windows 2016 server on AWS.
感谢您提供任何解决此问题的帮助.
Any help to fix this issue is appreciated.
推荐答案
您可以使用bellow命令将映像拉至Windows Server 2016的Docker主机:
You can use bellow command to pull the image to your docker host which is windows server 2016:
docker pull microsoft/windowsservercore
这篇关于无法安装WindowsServerCore容器映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!