Install Docker Machine
2016-04-28 11:51
645 查看
Install Docker Machine
On OS X and Windows, Machine is installed along with other Docker products when you install the Docker Toolbox. For details on installing Docker Toolbox, see the Mac OS X installation instructions or Windows installation instructions.If you want only Docker Machine, you can install the Machine binaries directly by following the instructions in the next section. You can find the latest versions of the binaries are on the docker/machine release page on GitHub.Installing Machine Directly
Install the Docker binary.Download the Docker Machine binary and extract it to your PATH.If you are running OS X or Linux:
$ curl -L https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine && \ chmod +x /usr/local/bin/docker-machineIf you are running Windows with git bash
$ if [[ ! -d "$HOME/bin" ]]; then mkdir -p "$HOME/bin"; fi && \ curl -L https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" && \ chmod +x "$HOME/bin/docker-machine.exe"Otherwise, download one of the releases from the docker/machine release page directly.
Check the installation by displaying the Machine version:
$ docker-machine version docker-machine version 0.6.0, build 61388e9
Installing bash completion scripts
The Machine repository supplies severalbashscripts that add features such as:command completion
a function that displays the active machine in your shell prompt
a function wrapper that adds a
docker-machine usesubcommand to switch the active machine
To install the scripts, copy or link them into your
/etc/bash_completion.dor
/usr/local/etc/bash_completion.ddirectory. To enable the
docker-machineshell prompt, add
$(__docker_machine_ps1)to your
PS1setting in
~/.bashrc.
PS1='[\u@\h \W$(__docker_machine_ps1)]\$ 'You can find additional documentation in the comments at the top of each script.
相关文章推荐
- 从源码安装Mysql/Percona 5.5
- centos6.5上安装docker
- docker容器的网络信息查看
- Varnish Install And Configure
- 在windows下的安装Docker的教程
- 8个你可能不知道的Docker知识
- 安装软件 Nullsoft Install System 2.27汉化版 下载
- node.js使用npm 安装插件时提示install Error: ENOENT报错的解决方法
- 在Docker中自动化部署Ruby on Rails的教程
- 搭建基于Docker的PHP开发环境的详细教程
- 利用OpenVSwitch在多台主机上部署Docker的教程
- ubuntu14.04+docker的安装及使用
- Docker 清理命令集锦
- 再Docker中架设完整的WordPress站点全攻略
- 基于 Docker 开发 NodeJS 应用
- 使用Docker来加速构建Android应用的基本部署思路解析
- linux下安装easy_install的方法
- 在Docker上部署Python的Flask框架的教程
- 在Docker上开始部署Python应用的教程
- 详解在Python和IPython中使用Docker