在Azure虚拟机Windows 10上安装Docker [英] Installing docker on azure virtual machine windows 10

查看:257
本文介绍了在Azure虚拟机Windows 10上安装Docker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Azure虚拟机上安装Docker时出现错误。

I am getting an error upon installing docker on azure virtual machine.

m / c配置:azure vm,Windows 10企业版,Intel 2.4 GHz,7 GB RAM,64位操作系统,基于x64的处理器。
我浏览了一些博客,他们要求我按如下所示在azure vm上启用嵌套虚拟化。

m/c configuration: azure vm, windows 10 enterprise, Intel 2.4 GHz, 7 GB RAM, 64-bit operating system, x64-based processor. I went through a few blogs and they asked me to enable nested virtualization on azure vm as follows.


Set-VMProcessor- VMName MobyLinuxVM -ExposeVirtualizationExtensions $ true

Set-VMProcessor -VMName MobyLinuxVM -ExposeVirtualizationExtensions $true

但是这也无济于事,虚拟m / c MobyLinuxVM无法启动。
我已经从Windows功能安装了Hyper-V和Container组件。但是错误显示因为Hyper-V组件之一没有运行,而Hyper-V的所有组件都在运行。
我检查了任务管理器的性能选项卡,但没有看到虚拟化选项。我在Azure VM上安装docker时无法在BIOS中修改虚拟化设置。我也尝试禁用Windows防火墙,但这没有帮助。
那么如何在azure虚拟m / c Windows 10企业版上运行docker。

But this also didn't help and the virtual m/c MobyLinuxVM failed to start. I have installed Hyper-V and Container components from windows features. But the error shows "because one of the Hyper-V components is not running" whereas all the components of Hyper-V are running. I checked the task manager performance tab and I don't see the virtualization option there. I can't modify the virtualization settings in the BIOS as I am installing docker on an Azure VM. Also I tried disabling the windows firewall but that didn't help. So how to run docker on azure virtual m/c windows 10 enterprise.

推荐答案

这是解决方案,如果您在安装了Docker的 Azure Windows 10 VM 上遇到此错误:

Here is a solution if you are getting this error on Azure Windows 10 VM where you have installed Docker:



  1. 通过运行PowerShell cmdlet确保启用Windows Hyper-V功能:


Enable-WindowsOptionalFeature-在线-FeatureName Microsoft-Hyper-V -All -Verbose



  1. 通过运行PowerShell cmdlet确保启用了Windows容器功能:


Enable-WindowsOptionalFeature -Online -FeatureName容器-All -Verbose



  1. 通过在提升的命令提示符下运行,确保Hypervisor设置为在启动配置数据库(BCD)中自动启动。他命令:

  1. Ensure Hypervisor is set to auto start in the Boot Configuration Database (BCD) by running in elevated command prompt the command:


bcdedit / set hypervisorlaunchtype Auto

运行上述所有操作后,您重新启动Azure VM ,Docker应该可以正常启动。

After running all of the above and you restart the Azure VM, Docker should be starting normally.

这篇关于在Azure虚拟机Windows 10上安装Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆