【问题标题】:Unable to install windowsServerCore Container Image无法安装 windowsServerCore 容器映像
【发布时间】:2017-12-12 00:23:13
【问题描述】:

我正在尝试使用以下命令在我的 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 服务器。

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

【问题讨论】:

  • 您从哪里获得该 cmdlet 以及您想要做什么?为什么不使用普通的docker 命令。

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


【解决方案1】:

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

docker pull microsoft/windowsservercore

【讨论】:

    【解决方案2】:

    使用以下命令:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-20
      • 2021-07-09
      相关资源
      最近更新 更多