docker_practice/machine/install.md

34 lines
902 B
Go
Raw Normal View History

2015-05-08 20:10:34 +08:00
##
2017-11-23 01:22:25 +08:00
2017-11-30 18:28:23 +08:00
Docker Machine LinuxmacOS Windows
2015-07-16 15:34:54 +08:00
2017-11-23 01:22:25 +08:00
### macOSWindows
2015-07-16 15:34:54 +08:00
`Docker Desktop for Mac/Windows` `docker-machine` 使
2015-07-16 15:34:54 +08:00
2017-11-23 01:22:25 +08:00
2015-07-16 15:34:54 +08:00
```bash
2015-07-16 15:34:54 +08:00
$ docker-machine -v
docker-machine version 0.16.1, build cce350d7
2015-07-16 15:34:54 +08:00
```
2017-11-23 01:22:25 +08:00
### Linux
2015-07-16 15:34:54 +08:00
2017-11-23 01:22:25 +08:00
Linux [ GitHub Release](https://github.com/docker/machine/releases) 处直接下载编译好的二进制文件即可。
2015-07-16 15:34:54 +08:00
2017-11-23 01:22:25 +08:00
Linux 64
2015-07-16 15:34:54 +08:00
```bash
$ sudo curl -L https://github.com/docker/machine/releases/download/v0.16.1/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine
2017-11-30 18:28:23 +08:00
$ sudo chmod +x /usr/local/bin/docker-machine
2017-11-23 01:22:25 +08:00
```
2017-11-30 18:28:23 +08:00
2015-07-16 15:34:54 +08:00
2017-11-23 01:22:25 +08:00
```bash
$ docker-machine -v
docker-machine version 0.16.1, build cce350d7
2015-07-16 15:34:54 +08:00
```