Dokcer Desktop下载
启用Hyper-V以在 Windows 10上创建虚拟机
# 管理员身份打开 PowerShell 控制台,运行
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
配置阿里云镜像加速地址
Windows PowerShell查看Docker版本
docker version
验证Docker桌面版
docker run hello-world
查看镜像设置
docker info
win版默认已经安装,linux需要单独安装
Install Compose on Windows desktop systems
Docker Desktop for Windows includes Compose along with other Docker apps, so most Windows users do not need to install Compose separately. For install instructions, see Install Docker Desktop on Windows.
If you are running the Docker daemon and client directly on Microsoft Windows Server, follow the instructions in the Windows Server tab.
测试:
docker-compose --version