轉 叫板OpenStack:用Docker實現私有雲
http://www.cnblogs.com/alexkn/p/4239457.html
看到各大廠商的雲主機,會不會覺得高大上?目前大公司的主流方案是OpenStack,比如某個公司的私有雲
其實,我們可以通過Docker可以很容易實現自己的私有雲。
下面進入正題。
假 設你所在的公司擁有一臺功能強悍的服務器,假設是centos,但開發人員,測試人員如果都在這一臺主機上進行開發,測試,後果是災難性的,但由於只有一 臺服務器,你們老板甚至還想把這剩余的性能榨取出來搭建一些服務賣給大眾...以往的話,開發,測試人員肯定要摔鍵盤了,這不是坑爹麽?但如果你會 Docker,就能很容易實現這一目標,升職加薪,當上總經理,出任CEO,贏取白富美,迎來人生的巔峰呢!
是不是有點小激動了?來吧,哥教你怎麽做。
一.升級Centos內核
官方推薦內核使用3.8以上,那我們升到長期穩定版的3.10.
[[email protected] ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org [[email protected] ~]# rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm [[email protected] ~]# yum --enablerepo=elrepo-kernel install kernel-lt -y
[[email protected]
[[email protected] ~]# reboot
[[email protected] ~]# uname -a
Linux iZ2893wjzgyZ 3.10.65-1.el6.elrepo.x86_64 #1 SMP Sat Jan 17 10:36:35 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
二.安裝docker
[[email protected] ~]# yum install http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm [[email protected]