AliyunContainerService / docker-machine-driver-aliyunecs

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

can't install Docker in remote host #6

Closed orangedeng closed 8 years ago

orangedeng commented 8 years ago

After Installing Docker, the driver can't read the docker cmd. I assume that Docker is not been installed. log is below

Creating machine... (dev2) dev2 | Creating key pair for instance ... (dev2) dev2 | Configuring security groups instance ... (dev2) dev2 | Creating instance with image ubuntu1404_64_20G_aliaegis_20150325.vhd ... (dev2) dev2 | Create instance i-23kov3n1j successfully (dev2) dev2 | Allocate publice IP address 121.43.115.155 for instance i-23kov3n1j successfully (dev2) dev2 | Starting instance i-23kov3n1j ... (dev2) dev2 | Start instance i-23kov3n1j successfully (dev2) dev2 | Waiting SSH service 121.43.115.155:22 is ready to connect ... (dev2) dev2 | Uploading SSH keypair to 121.43.115.155:22 ... (dev2) dev2 | Created instance i-23kov3n1j successfully with public IP address 121.43.115.155 and private IP address 10.174.176.50 Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with ubuntu(upstart)... Installing Docker... Error getting SSH command to check if the daemon is up: Something went wrong running an SSH command! command : sudo docker version err : exit status 1 output : sudo: docker: command not found

denverdino commented 8 years ago

你可以设置环境变量来利用阿里云Docker Engine mirror来防止Docker安装失败 export MACHINE_DOCKER_INSTALL_URL= http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/intranet

或者使用 --engine-install-url 参数