docker_practice/machine/install.md
2017-11-30 18:28:23 +08:00

33 lines
902 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 安装
Docker Machine 可以在多种操作系统平台上安装包括 LinuxmacOS以及 Windows
### macOSWindows
Docker for MacDocker for Windows 自带 `docker-machine` 二进制包安装之后即可使用
查看版本信息
```bash
$ docker-machine -v
docker-machine version 0.13.0, build 9ba6da9
```
### Linux
Linux 上的也安装十分简单 [官方 GitHub Release](https://github.com/docker/machine/releases) 处直接下载编译好的二进制文件即可。
例如 Linux 64 位系统上直接下载对应的二进制包
```bash
$ sudo curl -L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine
$ sudo chmod +x /usr/local/bin/docker-machine
```
完成后查看版本信息
```bash
$ docker-machine -v
docker-machine version 0.13.0, build 9ba6da9
```