天天看點

Win10安裝docker-machine

前提

首先,你需要Git Bash,如果你還沒有,你可以先去安裝 Git。

Win10安裝docker-machine

執行指令:

在 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
           
Win10安裝docker-machine
如果正常輸出,就表示安裝成功

參考文檔

Install Docker Machine 官網