AliyunContainerService / docker-machine-driver-aliyunecs

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

建议默认镜像升级到 Ubuntu 16.04 #14

Closed twang2218 closed 7 years ago

twang2218 commented 7 years ago

目前 docker-machine 官方驱动默认镜像基本都已升级到 Ubuntu 16.04 了,而阿里云驱动目前还只是 14.04.1。查看了一下阿里云 ECS 服务,似乎没有 16.04 的镜像支持。可否联系一下相关负责人提供一下 Ubuntu 16.04 的阿里云系统镜像,然后更新阿里云的 Docker Machine 驱动默认镜像到 Ubuntu 16.04 ?谢谢。

denverdino commented 7 years ago

Ubuntu16.04支持已在在测试中,等待镜像开放之后,会调整machine driver缺失镜像。谢谢!

denverdino commented 7 years ago

Fixed

twang2218 commented 7 years ago

看见了 2e7f3ea 这个 commit,正打算测试一下 ,却发现下载出问题了:README.md 给出的链接目前无法下载:

https://drone.io/github.com/denverdino/docker-machine-driver-aliyun/files

点击后说该版本的链接已过期,然后提示需要登录,我用自己的账户登陆后,只能看到我自己的 repo。

twang2218 commented 7 years ago

编译测试了一下,可以创建 Ubuntu 16.04 的主机并安装成功 docker:

root@d1:~/cloud# docker-machine create -d aliyunecs --engine-install-url=http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet  a1
Running pre-create checks...
Creating machine...
(a1) a1 | Creating key pair for instance ...
(a1) a1 | Configuring security groups instance ...
(a1) a1 | Creating instance with image ubuntu_160401_64_40G_cloudinit_20161115.vhd ...
(a1) a1 | Create instance i-2ze70kdyxh909p9ghaan successfully
(a1) a1 | Allocate publice IP address 123.56.158.174 for instance i-2ze70kdyxh909p9ghaan successfully
(a1) a1 | Starting instance i-2ze70kdyxh909p9ghaan ...
(a1) a1 | Start instance i-2ze70kdyxh909p9ghaan successfully
(a1) a1 | Waiting SSH service 123.56.158.174:22 is ready to connect ...
(a1) a1 | Uploading SSH keypair to 123.56.158.174:22 ...
(a1) a1 | Created instance i-2ze70kdyxh909p9ghaan successfully with public IP address 123.56.158.174 and private IP address 10.170.254.97
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(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env a1
root@d1:~/cloud# docker-machine ssh a1
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-57-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

Welcome to Alibaba Cloud Elastic Compute Service !

root@a1:~# uname -a
Linux a1 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
root@a1:~# docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.6
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-57-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 990.6 MiB
Name: a1
ID: UVR3:Z3CW:ZBPY:2YYK:HEBI:GPFD:5LSM:FN2I:JUTN:FXS3:D6MS:G4PZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
 provider=aliyunecs
Insecure Registries:
 127.0.0.0/8
root@a1:~# exit
logout

谢谢,问题已解决,关闭这个 issue。

denverdino commented 7 years ago

Drone io的问题,我们会解决。多谢