# WIn安装Docker教程 **Published by:** [repositoryStar](https://paragraph.com/@repositorystar/) **Published on:** 2025-04-03 **URL:** https://paragraph.com/@repositorystar/win-docker ## Content 使用虚拟机方案,先把下面的 下载 安装好 https://canonical.com/multipass/install 下载了就一路Next 安装,安装完记得重启安装Ubuntu这里推荐 全局翻墙 下载比较快点击设置 设置虚拟机CPU和内存虚拟机Name 我这里设置的docker,其他的cpu和内存参数自己根据实际情况来 设置完点击下面的Launch开始下载镜像和启动安装完 在这个地方可以进入Linux,但是这个地方没办法复制粘贴,需要使用到命令进入cmd执行命令multipass.exe shell docker 安装Dockersudo apt update sudo apt install docker* 安装完了后查看一下 docker-compose 版本,太低的版本需要升级sudo docker-compose version 升级命令sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d '"' -f 4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose sudo chmod +x /usr/bin/docker-compose 然后在检查版本一些常用的命令multipass.exe shell [虚拟机名称] ## Publication Information - [repositoryStar](https://paragraph.com/@repositorystar/): Publication homepage - [All Posts](https://paragraph.com/@repositorystar/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@repositorystar): Subscribe to updates