Win10安装docker-machine

前提

首先,你需要Git Bash,如果你还没有,你可以先去安装 Git。

执行命令:

在 Git Bash 中执行以下命令:

if [[ ! -d "$HOME/bin" ]]; then mkdir -p "$HOME/bin"; fi && 
curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" && 
chmod +x "$HOME/bin/docker-machine.exe"

这个命令参考自 https://github.com/docker/machine/releases,该网址上可以查询到最新的安装版本。

测试

然后,你在 Git Bash 中执行:

docker-machine version

如果正常输出,就表示安装成功

参考文档

Install Docker Machine 官网

原文地址:https://www.cnblogs.com/kendoziyu/p/15132062.html