JiaHe's Blog

读万卷书,行万里路

Docker

详细版:https://www.runoob.com/docker/windows-docker-install.html

开启 Hyper-V

  1. 打开”启用或关闭Windows功能“面板
  2. 勾选Hyper-V
  3. 点击确定,等待加载完成

安装Docker

  1. Powershell执行命令
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All
  1. 打开“服务”,启用:LanmanServer(Server)【支持此计算机通过网络的文件、打印、和命名管道共享。如果服务停止,这些功能不可用。如果服务被禁用,任何直接依赖于此服务的服务将无法启动。】

  2. 下载并安装Docker Desktop

可能遇到的问题

!以下命令都需要管理员权限执行

  1. Hardware assisted virtualization and data execution protection must be enabled in the BIOS.
# https://blog.csdn.net/mythest/article/details/92999646
bcdedit /set hypervisorlaunchtype auto
  1. Docker desktop requires the server service to be enabled Windows 10
# https://cloud.tencent.com/developer/article/1837890