加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

docker-无法安装WindowsServerCore容器映像

发布时间:2020-12-16 03:25:56 所属栏目:安全 来源:网络整理
导读:我正在尝试使用以下命令在WIndows 2016服务器上安装WindowsServercore映像. Install-containerImage WindowsServerCore 在运行时出现以下错误消息. Install-ContainerOSImage : The term 'Install-ContainerOSImage' is not recognized as the name of a cmd

我正在尝试使用以下命令在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:ProgramDatadockerwindowsfilterdc41572502daedc9c628b56d1f369
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 Server.

感谢您提供任何解决此问题的帮助.

最佳答案
您可以使用bellow命令将映像拉至Windows Server 2016的Docker主机:

docker pull微软/ windowsservercore

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读