AliyunContainerService / docker-machine-driver-aliyunecs

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

create docker-machine failed #21

Closed xiaopeng163 closed 6 years ago

xiaopeng163 commented 6 years ago
ECS_ACCESS_KEY_ID=xxx
ECS_ACCESS_KEY_SECRET=xxxx
ECS_REGION=cn-beijing
MACHINE_DOCKER_INSTALL_URL=http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet
DEBUG=true

and I try to create

➜  ~ docker-machine create -d aliyunecs imooc
Running pre-create checks...
Creating machine...
(imooc) imooc | Creating key pair for instance ...
(imooc) imooc | Configuring security groups instance ...
(imooc) imooc | Launching instance with generated password, please update password in console or log in with ssh key.
(imooc) imooc | Creating instance with image ubuntu_160401_64_40G_cloudinit_20161115.vhd ...
Error creating machine: Error in driver during machine creation: imooc | Failed to create instance: Aliyun API Error: RequestId: E593206E-B997-4722-B61D-2CB3EC0AF3DF Status Code: 403 Code: InvalidResourceType.NotSupported Message: This resource type is not supported; please try other resource types.
➜  ~

Can anyone help?

xiaopeng163 commented 6 years ago

anyone can help?

RodJohn commented 6 years ago

i got the same error

RodJohn commented 6 years ago

@denverdino can you fix the bug ?

denverdino commented 6 years ago

@menglingwei Pls help on that. I guess the base image name need update. Thanks

menglingwei commented 6 years ago

"Failed to create instance: Aliyun API Error: RequestId: E593206E-B997-4722-B61D-2CB3EC0AF3DF Status Code: 403 Code: InvalidResourceType.NotSupported Message: This resource type is not supported; please try other resource types." According to the wrong information, I checked the specific error log。The instance type you chose is (ecs.t1.samll) not sold now, so you need to select other instance type。you can login aliyun console,add visite https://ecs-buy.aliyun.com/wizard/?spm=5176.2020520101.105.d10.7948b288N8KmL5#/postpay/cn-hangzhou to select the correct instance type you can buy. @xiaopeng163 @RodJohn

xiaopeng163 commented 6 years ago

@menglingwei thanks. got another error after change instance type

Error creating machine: Error in driver during machine creation: Aliyun API Error: RequestId:  Status Code: -1 Code: AliyunGoClientFailure Message: Get https://ecs-cn-hangzhou.aliyuncs.com?AccessKeyId=LTAIPoRNN2dtRazR&Action=DescribeSecurityGroups&Format=JSON&RegionId=cn-qingdao&SignatureMethod=HMAC-SHA1&SignatureNonce=kfJ_xBDqC9WTCzva0f1p7giHv9c9TwbW&SignatureVersion=1.0&Timestamp=2018-01-04T08%3A29%3A54Z&Version=2014-05-26&Signature=5C72QEHucDWO8lDHeVuYrFReY%2Fo%3D: net/http: TLS handshake timeout
menglingwei commented 6 years ago

@xiaopeng163 where do you use our machine driver? error "net/http: TLS handshake timeout" means network latency high . Are you abroad?

xiaopeng163 commented 6 years ago

Not exactly, I am in BJ, but our company's network is VPN connection through Shanghai or HK, then back to mainland China. I will try again when I have another network connection and reach you back, thanks for your quick response.

xiaopeng163 commented 6 years ago

@menglingwei I chose the ecs.g5.large but it told me DependencyViolation.IoOptimized Message: The specified instancetype must be IoOptimized instance.

menglingwei commented 6 years ago

@xiaopeng163 "DependencyViolation.IoOptimized Message: The specified instancetype must be IoOptimized instance. " you must set params --aliyunecs-io-optimized=optimized

xiaopeng163 commented 6 years ago

Finally, thanks