Install Docker Machine 2015

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 only want Docker Machine, you can install the Machine binaries (the latest versions of which are located athttps://github.com/docker/machine/releases/ ) directly by following the instructions in the next section.

Installing Machine Directly

  1. Download the archive containing the Docker Machine binaries and extract them to your PATH.
    Linux:
    
    
        $ curl -L https://github.com/docker/machine/releases/download/v0.5.0/docker-machine_linux-amd64.zip >machine.zip && \
        unzip machine.zip && \
        rm machine.zip && \
        mv docker-machine* /usr/local/bin
    
    
    OSX:
    
    
        $ curl -L https://github.com/docker/machine/releases/download/v0.5.0/docker-machine_darwin-amd64.zip >machine.zip && \
        unzip machine.zip && \
        rm machine.zip && \
        mv docker-machine* /usr/local/bin
    
    
    Windows (using Git Bash):
    
    
        $ curl -L https://github.com/docker/machine/releases/download/v0.5.0/docker-machine_windows-amd64.zip >machine.zip && \
        unzip machine.zip && \
        rm machine.zip && \
        mv docker-machine* /usr/local/bin
    
  2. Check the installation by displaying the Machine version:
    $ docker-machine -v
    machine version 0.5.0 (3e06852)
    

Installing bash completion scripts

The Machine repository supplies several bash scripts 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 use subcommand to switch the active machine
To install the scripts, copy or link them into your /etc/bash_completion.d or/usr/local/etc/bash_completion.d file. To enable the docker-machineshell prompt, add $(__docker-machine-ps1) to your PS1 setting in~/.bashrc.
PS1='[\u@\h \W$(__docker-machine-ps1)]\$ '
You can find additional documentation in the comments at the top of each script.

No comments :