我想对CI使用AppVeyor,对docker使用Linux容器。我使用Visual Studio 2017图像。当我运行docker-switch-linux时,我得到了以下错误:
Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start.
Failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running.
'MobyLinuxVM' failed to start. (Virtual machine ID C5FFC9C0-7293-45A6-B7C6-3FFC31AE0D25)
The Virtual Machine Management Service failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running (Virtual machine ID C5FFC9C0-7293-45A6-B7C6-3FFC31AE0D25).
at Start-MobyLinuxVM, <No file>: line 300
at <ScriptBlock>, <No file>: line 395有什么线索吗?
我也添加了- ps: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All,但没有用。
发布于 2019-09-12 01:16:23
我们停止了在Visual Studio 2017镜像上运行Docker CE,因为我们遇到了最新的Docker CE和最新的Windows Server 2016更新的问题。
作为一种变通方法,对于Docker CE,我们提供了一个名为Windows Server 2019的镜像。示例用法是here。请注意,我们应请求提供此图像,并需要为此提供您的AppVeyor帐户名称。请通过电子邮件向support@appveyor.com或通过邮寄到https://help.appveyor.com/请求访问此图像。
此外,我们计划将容器功能(Docker EE)添加到通常可用的镜像Visual Studio 2019中。请观看this GitHub问题。
https://stackoverflow.com/questions/57877294
复制相似问题