当我尝试使用以下命令运行基于docker的Windows容器时,出现以下错误:
docker pull microsoft/dotnet-framework
docker run -it microsoft/dotnet-framework cmd
docker:来自守护程序的错误响应:容器31112532fbefca415cfb10134612cf4467c084e93e699b7caa320ca60f5df266在CreateContainer期间遇到错误:Windows系统调用失败:此系统上没有虚拟机监控程序 . (0xc0351000)
Docker for Windows在Macbook Pro(基于Intel,2016,OS X El Capitan)的Windows 10 Pro VM(使用VirtualBox)中设置 . 在Docker的设置中,我切换到使用Windows容器 . OS X是否存在特定问题?因为我能够在运行Windows 10 Pro的PC上完成这项工作 .
1 回答
在Windows 10上运行Docker Windows容器时,需要Hyper-V . 这不适用于VirtualBox,因为VirtualBox does not support nested virtualization .
相反,您应该在VirtualBox VM中使用Windows Server 2016(WS2016) . WS2016可以运行具有进程隔离的Docker Windows容器,而不需要Hyper-V .
你可以trial WS2016 for free和Stefan Scherer maintains a set Vagrant scripts that automate setup and configuration .