在家玩DaoCloud企业版

背景

DaoCloud是国内领先的容器云,我的山寨容器云需要多向他学习。
以前只用过公有云版本,大概把持续集成持续交付那一块弄明白了。最近发现有DaoCloud企业版,简称DEC,看了下截图,感觉很不错,决定也自己搞一个玩。

创建机器

在DigitalOcean创建两台最低配.

开始安装

控制节点

也就是master
一条命令搞定

1
bash -c "$(docker run -i --rm daocloud.io/daocloud/dce install)"

竟然内存太小,凑着着用

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Verifying System compatibility...
Requirement Value Note
----------------------- ----------------------------- -------------------------------------------------------
CPU 1 Recommended more than 4 CPU Core.
Memory 489.9921875 MiB WARN: Should be installed where more than 1G memory.
Storage For Docker 16.7933425903 GiB Recommended more than 30GB.
Network to Controller OK OK
Network from Controller OK OK
Operating System Ubuntu 14.04.4 LTS WARN: Recommended Ubuntu 16.04.
Linux Kernel 3.13.0-85-generic Recommended the latest maintained version Linux kernel.
Docker Version 1.11.2 OK
Docker Storage Driver aufs OK
Docker Feature All Supported OK
Docker ID MIM2:DL6F:WVJN:UDDF:... OK
Firewalld UnKnown Make sure the firewalld has been closed.
Host Name docker-512mb-sfo2-01 OK
Port 80,443,2375,12376,12380,12379 OK
Time 0ms OK
SELinux permissive SELinux has been disabled.

容器节点

也就是slave
看起来像是swarm join
在另一台机器上运行

1
bash -c "$(docker run -i --rm daocloud.io/daocloud/dce join {你的控制器IP})"

效果

image
image


本博客欢迎转发,但请保留原作者信息
github:codejuan
博客地址:http://blog.decbug.com/