- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
起初,docker 在我的正式版 Windows 10 上运行良好。
然后我出于某种原因删除了 Hyper-V 中的 MobyLinuxVM。之后, docker 无法工作。
然后我关闭了Hyper-V的功能并卸载了docker(当然是重启了电脑)。
然后我重新安装 docker 并再次打开 Hyper-V 的功能。但是 docker 仍然无法工作。
我已经在google上尝试了一些解决方案,但问题仍然存在。
我在 docker 启动期间检查了 MobyLinuxVM 的状态,发现 MobyLinuxVM 从未创建。
有人知道怎么解决吗?
这是屏幕截图和日志:
[Version: 1.13.1 (10072)
Channel: Stable
Sha1: 94675c5a765e2c51fba6c10b87e0a1a4ed3dde51
Started on: 2017/02/23 09:35:27.478
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Pro
Edition: Professional
Id: 1511
Build: 10586
BuildLabName: 10586.672.amd64fre.th2_release_sec.161024-1825
File: C:\Users\212599222\AppData\Local\Docker\log.txt
CommandLine: "C:\Program Files\Docker\Docker\Docker for Windows.exe"
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
\[09:35:27.603\]\[GUI \]\[Info \] Starting...
\[09:35:28.290\]\[Tracking \]\[Info \] Crash report and usage statistics are enabled
\[09:35:28.306\]\[SegmentApi \]\[Info \] Usage statistic: appLaunched
\[09:35:28.625\]\[SegmentApi \]\[Error \] Failed to track event appLaunched: An error occurred while sending the request.
\[09:35:28.625\]\[NamedPipeClient\]\[Info \] Sending Version()...
\[09:35:28.641\]\[NamedPipeClient\]\[Info \] Received response for Version
\[09:35:28.641\]\[SegmentApi \]\[Info \] Usage statistic: heartbeat
\[09:35:28.641\]\[SegmentApi \]\[Error \] Failed to track event heartbeat: An error occurred while sending the request.
\[09:34:34.255\]\[BackendServer \]\[Info \] Started
\[09:35:28.641\]\[NamedPipeServer\]\[Info \] Version()
\[09:35:28.641\]\[NamedPipeServer\]\[Info \] Version done in 00:00:00.
\[09:35:28.841\]\[Updater \]\[Info \] Checking for updates on channel Stable...
\[09:35:28.841\]\[NamedPipeClient\]\[Info \] Sending Start(Docker.Core.Settings)...
\[09:35:28.858\]\[NamedPipeServer\]\[Info \] Start(Docker.Core.Settings)
\[09:35:28.863\]\[UpdateFeedDownloader\]\[Error \] The remote name could not be resolved: 'download.docker.com'
\[09:35:28.863\]\[Updater \]\[Info \] No update available
\[09:35:28.862\]\[PowerMode \]\[Info \] Stop
\[09:35:28.863\]\[HyperV \]\[Info \] Stop
\[09:35:28.863\]\[PowerShell \]\[Info \] Run script with parameters: -Stop True...
\[09:35:28.863\]\[PowerShell \]\[Info \] Creating a Runspace Pool...
\[09:35:29.909\]\[PowerShell \]\[Info \] Runspace Pool created (Min=1, Max=2)
\[09:35:29.969\]\[HyperV \]\[Info \] Script started at 09:35:29.964
\[09:35:33.783\]\[HyperV \]\[Info \] Module loaded at 09:35:33.783
\[09:35:33.983\]\[HyperV \]\[Info \] VM MobyLinuxVM does not exist
\[09:35:33.983\]\[HyperV \]\[Debug \] \[stop\] took 00:00:05.1195593 to run
\[09:35:33.983\]\[OptimizeDisk \]\[Info \] Optimize
\[09:35:33.983\]\[PowerShell \]\[Info \] Run script...
\[09:35:33.999\]\[Moby \]\[Info \] Stop
\[09:35:34.014\]\[HyperVGuids \]\[Info \] Installing GUIDs...
\[09:35:34.014\]\[PowerMode \]\[Info \] Start
\[09:35:34.014\]\[HyperV \]\[Info \] Create
\[09:35:34.014\]\[PowerShell \]\[Info \] Run script with parameters: -Create True -VhdPathOverride -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
\[09:35:34.014\]\[HyperVGuids \]\[Info \] GUIDs installed
\[09:35:34.033\]\[HyperV \]\[Info \] Script started at 09:35:34.033
\[09:35:34.036\]\[Firewall \]\[Info \] Removing all existing rules...
\[09:35:34.115\]\[HyperV \]\[Info \] Module loaded at 09:35:34.115
\[09:35:34.315\]\[HyperV \]\[Info \] Enabled workaround for Build 10586 VMSwitch issue
\[09:35:34.518\]\[Firewall \]\[Info \] All existing rules are removed.
\[09:35:34.518\]\[Firewall \]\[Info \] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
\[09:35:35.451\]\[Firewall \]\[Info \] Opening ports for SMB...
\[09:35:36.358\]\[Firewall \]\[Info \] Ports are opened
\[09:36:31.192\]\[HyperV \]\[Info \] Creating Switch: DockerNAT...
\[09:37:26.994\]\[HyperV \]\[Info \] Switch created.
\[09:37:28.917\]\[Linux \]\[Error \] Failed to start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists.
. Let's retry
\[09:37:28.917\]\[PowerShell \]\[Info \] Run script...
\[09:37:42.595\]\[HyperV \]\[Info \] Hyper-V is running
\[09:37:42.595\]\[PowerMode \]\[Info \] Stop
\[09:37:42.595\]\[HyperV \]\[Info \] Stop
\[09:37:42.596\]\[PowerShell \]\[Info \] Run script with parameters: -Stop True...
\[09:37:42.602\]\[HyperV \]\[Info \] Script started at 09:37:42.602
\[09:37:42.707\]\[HyperV \]\[Info \] Module loaded at 09:37:42.707
\[09:37:42.728\]\[HyperV \]\[Info \] VM MobyLinuxVM does not exist
\[09:37:42.728\]\[HyperV \]\[Debug \] \[stop\] took 00:00:00.1332364 to run
\[09:37:42.728\]\[OptimizeDisk \]\[Info \] Optimize
\[09:37:42.728\]\[PowerShell \]\[Info \] Run script...
\[09:37:42.744\]\[Moby \]\[Info \] Stop
\[09:37:42.752\]\[HyperV \]\[Info \] Destroy
\[09:37:42.753\]\[PowerShell \]\[Info \] Run script with parameters: -Destroy True -KeepVolume True...
\[09:37:42.761\]\[HyperV \]\[Info \] Script started at 09:37:42.761
\[09:37:42.850\]\[HyperV \]\[Info \] Module loaded at 09:37:42.850
\[09:37:42.864\]\[HyperV \]\[Info \] VM MobyLinuxVM does not exist
\[09:37:42.865\]\[HyperV \]\[Info \] Destroying Switch DockerNAT...
\[09:38:02.148\]\[HyperV \]\[Info \] Removing VM MobyLinuxVM...
\[09:38:02.163\]\[HyperV \]\[Debug \] \[destroy\] took 00:00:19.4109973 to run
\[09:38:02.163\]\[Firewall \]\[Info \] Closing ports...
\[09:38:02.163\]\[Firewall \]\[Info \] Removing all existing rules...
\[09:38:02.335\]\[Firewall \]\[Info \] Removing DockerProxy...
\[09:38:02.512\]\[Firewall \]\[Info \] Removed DockerProxy.
\[09:38:02.694\]\[Firewall \]\[Info \] Removing DockerSmbMount...
\[09:38:02.889\]\[Firewall \]\[Info \] Removed DockerSmbMount.
\[09:38:03.050\]\[Firewall \]\[Info \] All existing rules are removed.
\[09:38:03.050\]\[Firewall \]\[Info \] Ports are closed
\[09:38:03.051\]\[HyperVGuids \]\[Info \] Removing GUIDs...
\[09:38:03.056\]\[HyperVGuids \]\[Info \] GUIDs removed
\[09:38:03.057\]\[HyperV \]\[Info \] Create
\[09:38:03.057\]\[PowerShell \]\[Info \] Run script with parameters: -Create True -VhdPathOverride -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
\[09:38:03.063\]\[HyperV \]\[Info \] Script started at 09:38:03.063
\[09:38:03.122\]\[HyperV \]\[Info \] Module loaded at 09:38:03.122
\[09:38:03.178\]\[HyperV \]\[Info \] Enabled workaround for Build 10586 VMSwitch issue
\[09:38:13.824\]\[HyperV \]\[Info \] Creating Switch: DockerNAT...
\[09:38:28.719\]\[HyperV \]\[Info \] Switch created.
\[09:38:29.134\]\[PowerMode \]\[Info \] Stop
\[09:38:29.134\]\[HyperV \]\[Info \] Stop
\[09:38:29.135\]\[PowerShell \]\[Info \] Run script with parameters: -Stop True...
\[09:38:29.142\]\[HyperV \]\[Info \] Script started at 09:38:29.141
\[09:38:29.223\]\[HyperV \]\[Info \] Module loaded at 09:38:29.223
\[09:38:29.236\]\[HyperV \]\[Info \] VM MobyLinuxVM does not exist
\[09:38:29.237\]\[HyperV \]\[Debug \] \[stop\] took 00:00:00.1021625 to run
\[09:38:29.237\]\[OptimizeDisk \]\[Info \] Optimize
\[09:38:29.237\]\[PowerShell \]\[Info \] Run script...
\[09:38:29.247\]\[Moby \]\[Info \] Stop
\[09:38:29.253\]\[HyperV \]\[Info \] Destroy
\[09:38:29.254\]\[PowerShell \]\[Info \] Run script with parameters: -Destroy True -KeepVolume True...
\[09:38:29.262\]\[HyperV \]\[Info \] Script started at 09:38:29.261
\[09:38:29.335\]\[HyperV \]\[Info \] Module loaded at 09:38:29.335
\[09:38:29.347\]\[HyperV \]\[Info \] VM MobyLinuxVM does not exist
\[09:38:29.348\]\[HyperV \]\[Info \] Destroying Switch DockerNAT...
\[09:38:38.264\]\[HyperV \]\[Info \] Removing VM MobyLinuxVM...
\[09:38:38.276\]\[HyperV \]\[Debug \] \[destroy\] took 00:00:09.0233008 to run
\[09:38:38.276\]\[Firewall \]\[Info \] Closing ports...
\[09:38:38.276\]\[Firewall \]\[Info \] Removing all existing rules...
\[09:38:38.488\]\[Firewall \]\[Info \] All existing rules are removed.
\[09:38:38.488\]\[Firewall \]\[Info \] Ports are closed
\[09:38:38.488\]\[HyperVGuids \]\[Info \] Removing GUIDs...
\[09:38:38.488\]\[HyperVGuids \]\[Info \] GUIDs removed
\[09:38:38.493\]\[NamedPipeServer\]\[Error \] Unable to execute Start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists.
at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
at Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object\[\] parameters)
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object\[\] parameters)
\[09:38:38.565\]\[NamedPipeClient\]\[Error \] Unable to send Start: Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists.
\[09:38:38.567\]\[Notifications \]\[Error \] Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists.
\[09:39:59.534\]\[SegmentApi \]\[Info \] Usage statistic: actionMenuSettings
\[09:40:07.295\]\[ErrorReportWindow\]\[Info \] Open logs][1]
最佳答案
Then I reinstall the docker and turn on the feature of Hyper-V again.
请务必先开启 Hyper-V 的功能(并重启)
然后 reinstall Docker for Windows .
见“What to know before you install”:
The current version of Docker for Windows runs on 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later).
The Hyper-V package must be enabled for Docker for Windows to work. The Docker for Windows installer will enable it for you, if needed.
docker/for-win
issue 248 中报告了您的特定错误消息在此之前 issue 214
Unable to create:
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop:
The object already exists.
作为 noted in this comment和 here ,尝试删除保存的虚拟机并重新启动。
you should be in
C:\Program Files\Docker\Docker\resources
to run the commands.
So let me refine the sequence of commands that you could run:
com.docker.service
cd 'C:\Program Files\Docker\Docker\resources'
.\MobyLinux.ps1 -Destroy
C:\Users\Public\Public Documents\Hyper-V\Virtual hard disks\MobyLinuxVM.vhdx
).\MobyLinux.ps1 -创建
关于windows - 手动删除 Hyper-V 中的 MobyLinuxVM 后,Windows 10 上的 Docker 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42500353/
我第一次使用Hyper-V(运行Windows 8)。当我创建一个新的外部虚拟网络交换机时,它将虚拟机的网络适配器与WiFi桥接-出于某种原因,它会中断WiFi的Internet连接。为什么,我可能做
我有一个 vhd 文件,我需要在其上启用网络和远程连接。 vhd上安装了Windows Server 2008 R2和SharePoint开发平台、VS 2010... 我的笔记本电脑运行 Windo
我今天在我的 HP Windows 10 Pro 笔记本电脑上启用了 Hyper-V,它有第二台显示器,配置为扩展显示器(笔记本电脑是 #1,外接显示器是 #2)。重新启动计算机后,我注意到我的显示器
有谁知道为什么我在 hyper-v 管理器中看不到 HoloLens 2 模拟器作为虚拟机?据我所知,它是基于hyper-v的。我这样做是为了将默认虚拟交换机更改为外部虚拟交换机(也是虚拟交换机),以
Windows 手机模拟器需要 Hyper-V 才能运行,但 Android 模拟器又需要 Intel 硬件加速管理器 (HAXM),而后者无法兼容 Hyper-V。 有没有办法保持 Hyper-V
我在 Iron 处理程序中发出客户端请求。如何重用 Tokio 的 Core 和 Hyper 的 Client?我正在使用 hyper 0.11.0 和 tokio-core 0.1。 fn get_
我对此非常非常困惑。我有一台 Sony Vaio I7 笔记本电脑(bios 中有 Hyper-V 设置,所以我很容易启用 Hyper-V) 我想开发 Windows Phone 8。我已阅读 thi
我想使用 Hyper 来制作 HTTP 请求。调用 Client::get 工作正常,但其他方法,如 Client::post 和 Client::head 会导致编译错误。 extern crate
我们有一台大型服务器,上面运行着 Hyper-V 和一些虚拟机。我们的产品在虚拟机中的 Oracle DB 上运行时存在一些奇怪的问题,因此我们希望将 Oracle 直接安装到物理服务器上。我们可以限
如果你安装了win10系统,想做k8s集群,win10自带的hyper-v也是一个很适合的虚拟机环境。在上一节中,我们安装了两台虚拟机,这一节,都安装上docker。 master: 192.16
下面的教程在win2008与win2012 都可以 以上就完成了hyper-v虚拟机的创建工作。
第一步:Hyper-V创建虚拟交换机 第二步:虚拟机添加旧版网络适配器 好了,试下看可以上网了
Windows10安装Hyper-V后没有自动连接到本地计算机,手工连接失败,提示: 引用内容 尝试连接到服务器”DESKTOP-6P9L2HB”时出错。请检查虚拟机管理服务是否正在运行以及是否
我正在用 Hyper 编写一个“hello world”HTTP 服务器,但是我找不到 Server和 rt尝试导入模块时。 调用时cargo run ,然后我看到此错误消息: 26 | le
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 5年前关闭。 Improve this qu
我正在创建一个PowerShell脚本以作为计划任务运行。目的是在每个星期一在我们的每个虚拟机上创建一个快照。我为每个VM创建了一个简短的脚本。与本地Hyper-V服务器建立远程 session 后,
我有一个带有 2 个 NIC 但只有一个 IP 地址的 Windows Server 2008 R2,我已经安装了 Hyper-V。在 Hyper-V 内部,我创建了 2 个虚拟机。 我设置了一个外部
我正在尝试在 Hyper Web 服务器中创建一个计数器来计算它收到的请求数。我正在使用 Arc>坚持下去。但是,我一直无法找出 move 的正确组合。和 .clone()以满足闭包的类型。下面是一些
我遇到了一个编译错误,我对 master 中的示例稍作修改后不太理解Hyper 的分支。给定以下代码: extern crate futures; extern crate hyper; use fu
我在运行添加了对 HTTP/2 协议(protocol)支持的 Python hyper 库时遇到问题。 在我的 Fedora 机器上,我使用 pip 和 pip3 安装它,以便将它与 Python
我是一名优秀的程序员,十分优秀!