Run the following command to display all possible configuration parameters of Elastic Compute Service (ECS) Driver.

docker-machine create -d aliyunecs

Parts of the command parameters supported by ECS Driver are as follows (for more information, see docker-machine-driver-aliyunecs.md):

  • --aliyunecs-access-key-id: Required. Your AccessKey ID for Alibaba Cloud ECS API. By default, the Alibaba Cloud AccessKey ID uses ECS_ACCESS_KEY_ID environment variable.
  • --aliyunecs-access-key-secret: Required. Your AccessKey Secret for Alibaba Cloud ECS API. By default, the Alibaba Cloud AccessKey Secret uses the ECS_ACCESS_KEY_SECRET environment variable.
  • --aliyunecs-disk-size: The data disk size (in GB) for /var/lib/docker directory.
  • --aliyunecs-tag: Tag for the ECS instance.
  • --aliyunecs-vpc-id: Required for VPC only. Your VPC ID used to create the ECS instance.
  • --aliyunecs-vswitch-id: Required for VPC only. Your VSwitch ID used to create the ECS instance.
  • --aliyunecs-zone: The zone used to create the ECS instance.

You must have knowledge about the Alibaba Cloud ECS product APIs before configuring the preceding parameters. For more information, see ECS API document.