Blogger Information
Blog 60
fans 0
comment 0
visits 66510
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
【Docker Desktop】在 Windows 上安装 Docker Desktop
大宝
Original
1183 people have browsed it

一、参考链接

阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区

docker-toolbox镜像-docker-toolbox下载地址-docker-toolbox安装教程-阿里巴巴开源镜像站

阿里云开源镜像站资源目录

二、Docker toolbox介绍

Docker 只能运行在Linux内核的系统上。 Docker Toolbox 则为用户在Windows或者Mac系统上体验 Docker 提供了一个完整的工具包。 Docker Toolbox 适用于 Mac OS X 10.8+ and Windows 7 & 8.1。 Docker Toolbox 组件包括:

  • Docker Client
  • Docker Machine
  • Docker Compose (Mac only)
  • Docker Kitematic
  • VirtualBox

三、在 Windows? 上安装 Docker Desktop

参考链接:在 Windows | 上安装 Docker DesktopDocker 文档

双击 Docker 桌面安装程序.exe以运行安装程序。

image-20220228114158500

<font color=red>出现上述提示时,请确保在”配置”页上选中”启用 Hyper-V Windows 功能”或”为 WSL 2 安装所需的 Windows 组件”选项。</font>

参考链接:WSL2安装使用 - 简书 (jianshu.com)

image-20220228115221884

关闭并重启

image-20220228115215620

初始化

image-20220228115244190

开始设置

image-20220228163139206

尝试运行一个容器:复制并粘贴此命令到您的终端,然后返回

image-20220228163230754

  1. Microsoft Windows [版本 10.0.19043.1526]
  2. (c) Microsoft Corporation。保留所有权利。
  3. C:\Users\xybdiy>docker run -d -p 80:80 docker/getting-started
  4. Unable to find image 'docker/getting-started:latest' locally
  5. latest: Pulling from docker/getting-started
  6. 59bf1c3509f3: Pull complete
  7. 8d6ba530f648: Pull complete
  8. 5288d7ad7a7f: Pull complete
  9. 39e51c61c033: Pull complete
  10. ee6f71c6f4a8: Pull complete
  11. f2303c6c8865: Pull complete
  12. 0645fddcff40: Pull complete
  13. d05ee95f5d2f: Pull complete
  14. Digest: sha256:aa945bdff163395d3293834697fa91fd4c725f47093ec499f27bc032dc1bdd16
  15. Status: Downloaded newer image for docker/getting-started:latest
  16. c41a18e7fd167e5d02e1f561943f9d60d46282c4fae9079e65c171a6f55ac0c9
  17. C:\Users\xybdiy>

单击打开此容器

image-20220228163311992

查看信息

image-20220228163412227

至此,安装完成。

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post