Install Docker Machine
The simplest way is to install the Docker Toolbox, which includes Docker Engine, Docker Machine, and other tools.
To install Docker Machine independently, see Install Docker Machine.
Obtain ECS Driver
You can download the compiled results of Alibaba Cloud ECS Driver directly. The following versions can be used together with Docker Machine 0.5 or later versions:
Install ECS Driver
Docker Machine requires that the binary file of ECS Driver is in the system path (for Mac OSX, the path included in
$PATH). Change the file name to docker-machine-driver-aliyunecs and add the execute permission to the file. Then, Docker Machine can directly access ECS Driver.
The installation command on Mac OSX is to copy the binary file of ECS Driver to the /usr/local/bin directory. The command on Mac OSX is as follows:
mkdir docker-machine # Download and unzip Alibaba Cloud ECS Driver curl -L https://docker-machine-drivers.oss-cn-beijing.aliyuncs.com/docker-machine-driver-aliyunecs_darwin-amd64.tgz > driver-aliyunecs.tgz && tar xzvf driver-aliyunecs.tgz -C docker-machine && rm driver-aliyunecs.tgz mv docker-machine/bin/* /usr/local/bin mv /usr/local/bin/docker-machine-driver-aliyunecs.darwin-amd64 /usr/local/bin/docker-machine-driver-aliyunecs && chmod +x /usr/local/bin/docker-machine-driver-aliyunecs