読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

install Docker Machine

Docker Machineをインストールしてみましょう。

Docker Machine - Docker Documentation
に書かれている通り。

$ curl -L https://get.docker.com/builds/Windows/x86_64/docker-latest.exe > /bin
/docker
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7470k  100 7470k    0     0  1414k      0  0:00:05  0:00:05 --:--:-- 1860k

$ curl -L -k https://github.com/docker/machine/releases/download/v0.2.0/docker-machine_windows-amd64.exe > /bin/docker-machine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   412    0   412    0     0    425      0 --:--:-- --:--:-- --:--:--   425
100 11.4M  100 11.4M    0     0  1827k      0  0:00:06  0:00:06 --:--:-- 2570k

$ ls -l /bin/docker-machine
-rwxr-xr-x    1 akai  Administ 12048896 Jun 14 17:07 /bin/docker-machine*

$

※docker-machineをダウンロードする際には、-kオプションを追加しています。

さて、コマンドをたたいてみると。

$ docker-machine
NAME:
   C:\msysgit\bin\docker-machine - Create and manage machines running Docker.

USAGE:
   C:\msysgit\bin\docker-machine [global options] command [command options] [arguments...]

VERSION:
   0.2.0 (8b9eaf2)

AUTHOR:
  Docker Machine Contributors - <https://github.com/docker/machine>

COMMANDS:
   active               Get or set the active machine
   create               Create a machine
   config               Print the connection config for machine
   inspect              Inspect information about a machine
   ip                   Get the IP address of a machine
   kill                 Kill a machine
   ls                   List machines
   regenerate-certs     Regenerate TLS Certificates for a machine
   restart              Restart a machine
   rm                   Remove a machine
   env                  Display the commands to set up the environment for the Docker client
   ssh                  Log into or run a command on a machine with SSH
   start                Start a machine
   stop                 Stop a machine
   upgrade              Upgrade a machine to the latest version of Docker
   url                  Get the URL of a machine
   help, h              Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug, -D                                          Enable debug mode
   --storage-path "C:\Users\akai\.docker\machine"    Configures storage path [$MACHINE_STORAGE_PATH]
   --tls-ca-cert                                        CA to verify remotes against [$MACHINE_TLS_CA_CERT]
   --tls-ca-key                                         Private key to generatecertificates [$MACHINE_TLS_CA_KEY]
   --tls-client-cert                                    Client cert to use for TLS [$MACHINE_TLS_CLIENT_CERT]
   --tls-client-key                                     Private key used in client TLS auth [$MACHINE_TLS_CLIENT_KEY]
   --help, -h                                           show help
   --version, -v                                        print the version


$ docker-machine -v
C:\msysgit\bin\docker-machine version 0.2.0 (8b9eaf2)

$