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").
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 toPayByBandwidth
, which is not supported outside of China.This fix allows users to set the
InternetChargeType
parameter toPayByTraffic
andPayByBandwidth
. The default value has been set toPayByTraffic
(the internetChargeType constant at the beginning of aliyunecs/ecs.go was already set to "PayByTraffic").