Docker Desktop Installer 安装无反应的,如何解决?

docker教程

Docker 教程 | 菜鸟教程

下载地址:

Docker Desktop 官方下载地址: Install on Windows | Docker DocumentationHow to install Docker Desktop for Windowshttps://docs.docker.com/desktop/install/windows-install/

问题:出现的问题是双击安装无响应,没反应!

docker依赖于WSL才能在Windows上运行,需要安装WSL

Install WSL | Microsoft LearnInstall Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.icon-default.png?t=M85Bhttps://learn.microsoft.com/en-us/windows/wsl/install

 确认操作系统,版本大于WIN2019SERVER 1709版本

The Windows Subsystem for Linux (WSL) is available for installation on Windows Server 2019 (version 1709) and later. This guide will walk through the steps of enabling WSL on your machine.

Install WSL on Windows Server 2022

Windows Server 2022 now supports a simple WSL installation using the command:

BashCopy

wsl --install

You can now install everything you need to run WSL on Windows Server 2022 by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine.

To install WSL on Windows Server 2019 (version 1709+), you can follow the manual install steps below.

Enable the Windows Subsystem for Linux

Before you can run Linux distributions on Windows, you must enable the "Windows Subsystem for Linux" optional feature and reboot.

Open PowerShell as Administrator and run:

PowerShellCopy

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

 

 CHO

 

 

 docker在Windows上安装,做好选择WIN2019 1709以上版本。

### 安装Docker Desktop on Windows Server #### 准备工作 确保Windows Server满足最低系统要求,包括操作系统版本和支持的硬件配置。对于某些特定功能的支持可能依赖于操作系统的具体版本。 #### 下载并安装Docker Desktop 访问[Docker官方网站](https://www.docker.com/products/docker-desktop),下载适用于Windows的最新版Docker Desktop安装程序[^1]。请注意官方文档可能会提供更详细的指导说明以及最新的兼容性列表。 #### 启用Hyper-V和容器特性 为了使Docker能够正常运行,在安装之前需确认已启用了Hyper-V与容器这两个Windows特性。可以通过PowerShell命令来完成此设置: ```powershell Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All Enable-WindowsOptionalFeature -Online -FeatureName Containers -All ``` 重启计算机以应用更改[^2]。 #### 运行安装向导 双击下载好的`.exe`文件启动图形化安装过程。按照屏幕上的提示逐步进行直到结束。默认情况下会自动处理大部分必要的环境准备任务,比如移除旧版本中的CLI工具(如`/usr/local/bin/docker`, `/usr/local/bin/docker-compose`, 和 `/usr/local/bin/docker-machine`),这些通常由其他包管理器如Homebrew所放置的位置并不适用于此场景下。 #### 配置WSL 2后端支持(可选) 如果计划使用Linux容器,则建议启用WSL 2作为默认平台。这一步骤并非强制性的但对于提高性能非常有帮助。通过修改注册表键值或者利用PowerShell脚本来实现这一目标: ```powershell wsl --set-default-version 2 ``` #### 测试安装成果 打开命令提示符窗口输入简单的测试指令验证是否成功部署了服务: ```bash docker run hello-world ``` 该命令将会拉取一个小镜像并在新创建的容器里执行一段消息打印出来证明一切运作良好[^3]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值