简体   繁体   English

为什么docker切换到Linux在Windows10 pc上包含错误?

[英]Why docker switch to Linux containes error on Windows10 pc?

I want to use docker on win 10. But I can not use images by "pull " because My engine is Windows . 我想在win 10上使用docker。但是由于我的引擎是Windows,因此无法通过“拉”方式使用图像。 so I want to change to Linux . 所以我想改用Linux。 but something wrong with me . 但是我出事了。 (I can use docker before switch to Linux containers) (我可以在切换到Linux容器之前使用docker)
maybe my hyper-v is not normal. 也许我的hyper-v不正常。 but how to fix it . 但是如何解决。

There is my error info: 有我的错误信息:

Unable to create: The command that stopped the run because the preference variable "ErrorActionPreference" or the generic parameter is set to Stop: Since an object was not found, Hyper-V tried to access the object on the computer "DESKTOP-ILCQ0I2" To the wrong. 无法创建:由于首选项变量“ ErrorActionPreference”或通用参数设置为“ Stop”而停止运行的命令:由于未找到对象,Hyper-V试图访问计算机“ DESKTOP-ILCQ0I2”上的对象错的。 Verify that the virtual machine management service on this computer is running. 验证此计算机上的虚拟机管理服务正在运行。 In New-Switch, : Line 121 In , : line 411 In the Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) location C:\\workspaces\\stable-18.09.x\\src\\github.com\\docker\\pinata\\win\\src\\Docker.Core\\pipe \\NamedPipeClient.cs: line number 36 In the Docker.Actions.<>c__DisplayClass28_0.b__0() location C:\\workspaces\\stable-18.09.x\\src\\github.com\\docker\\pinata\\win\\src\\Docker.Windows\\Actions.cs: OK No. 305 In the Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() location C:\\workspaces\\stable-18.09.x\\src\\github.com\\docker\\pinata\\win\\src\\Docker.WPF\\TaskQueue. 在New-Switch中,第121行在中,第411行:在Docker.Core.Pipe.NamedPipeClient.Send(字符串操作,Object []参数)位置C:\\ workspaces \\ stable-18.09.x \\ src \\ github.com \\ docker \\ pinata \\ win \\ src \\ Docker.Core \\ pipe \\ NamedPipeClient.cs:行号36在Docker.Actions中。<> c__DisplayClass28_0.b__0()位置C:\\ workspaces \\ stable-18.09.x \\ src \\ github .com \\ docker \\ pinata \\ win \\ src \\ Docker.Windows \\ Actions.cs:确定编号305在Docker.WPF.TaskQueue中。<> c__DisplayClass19_0。<。ctor> b__1()位置C:\\ workspaces \\ stable- 18.09.x \\ src \\ github.com \\ docker \\ pinata \\ win \\ src \\ Docker.WPF \\ TaskQueue。 Cs: line number 59 CS:第59行

try the following commands: 尝试以下命令:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

reboot then: 然后重新启动:

Enable-WindowsOptionalFeature -Online -FeatureName Containers -All

if that does't work see this 如果那不起作用,请参阅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker 在 Windows10 中不起作用 - Docker not working in Windows10 在python Windows10中导入mxnet错误 - Import mxnet error in python windows10 在 Windows10 上编辑 subprocess.Popen(linux 命令) - Edit subprocess.Popen( linux command ) on Windows10 Laravel Sail - 在为 Windows10 WSL2 上的现有项目安装 laravel Sail 后,我不断收到 docker-composer 错误 - Laravel Sail - After installing laravel sail for an existing project on Windows10 WSL2 I keep getting a docker-composer error 出现错误:- env: 'python3\r': No such file or directory 在 windows10 中使用 Docker 运行 pyspark 项目时 - Getting error as :- env: 'python3\r': No such file or directory While running pyspark project using Docker in windows10 为什么在 Windows10 上的 Hadoop 安装错误期间运行“hdfs namenode -format”命令时出现错误? - Why I got an error when running “hdfs namenode -format” command during Hadoop Installation Error on Windows10? Windows 10上的Tflearn,Anaconda - Tflearn on Windows10, anaconda 适用于RaspberryPi的Windows10上的RDP - RDP on Windows10 for RaspberryPi 在 Windows10 与 Debian GNU/Linux 10 中生成不同输出的数值过程 - Numerical Procedure generating different outputs in Windows10 vs Debian GNU/Linux 10 Windows10中的占位符文本调整 - Placeholdertext tweak in windows10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM