AliyunContainerService / docker-machine-driver-aliyunecs

Aliyun (Alibaba Cloud) ECS Driver of Docker Machine
Apache License 2.0
203 stars 49 forks source link

Add a --aliyunecs-internet-charge-type parameter #35

Closed marcplouhinec closed 5 years ago

marcplouhinec commented 5 years ago

This change fixes a bug that prevented users to create a docker machine outside of Mainland China: when allocating an EIP, the InternetChargeType parameter was not set, so the internal system of Alibaba Cloud automatically set it to PayByBandwidth, which is not supported outside of China.

This fix allows users to set the InternetChargeType parameter to PayByTraffic and PayByBandwidth. The default value has been set to PayByTraffic (the internetChargeType constant at the beginning of aliyunecs/ecs.go was already set to "PayByTraffic").