Rancher之旅(一) ——Ubuntu kylin 4.0.2 部署 Rancher

教程 shanhuhai 8177℃ 1评论

这次教程使用的是 Kylin-4.0.2-server-sp1-Community-20170412-x86_64.iso 操作系统。

1. 安装好操作系统后,打开 Mate 终端软件, 执行

sudo su - 切换到 root 权限。

2. 设置 Ubuntu的 docker 安装源:

安装 GPG key:

curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg |  apt-key add -

校验 GPG key 是否安装成功

apt-key fingerprint 0EBFCD88

显示 :


修改 apt 的源文件管理文件 :

/etc/apt/sources.list, 修改为

deb http://archive.kylinos.cn/yhkylin juniper main restricted universe multiverse
deb http://cz.archive.ubuntu.com/ubuntu trusty main
deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu trusty stable

保存后, 更新源:

apt-get update

3. 列出可用的 docker-ce 版本并安装

apt-cache madison docker-ce

安装指定版本的 docker:

apt-get install docker-ce=<VERSION>

安装最新版本的 docker:

apt-get install docker-ce

4. 安装 docker

根据 rancher 支持的docker 版本要求, 我们选择安装 “17.06.2~ce-0~ubuntu” 版本


apt-get install docker-ce=17.06.2~ce-0~ubuntu 

docker 就安装好了, 然后启动 docker:

systemctl start docker

检查docker 安装版本:

docker version



5. 设置 docker 开机启动

systemctl enable docker.service

6. 设置 docker 加速镜像

打开 “/lib/systemd/system/docker.service”

修改 ExecStart/usr/bin/dockerd -H fd:// --registry-mirror=http://8a2e319e.m.daocloud.io

我使用了 daocloud.io 的加速镜像, 速度还是可以的

7. 安装启动 rancher:

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable

OK, 华丽丽的安装完了。

现在可以打开浏览器,浏览下 Rancher 的后台有什么好玩的东西了。

我用的是 Virtualbox 虚机安装的 Kylin os, 网络方式使用的是桥接,所有在浏览器里,输入我虚机的ip加端口 8080


ok, 出现了。

8. 设置 Rancher


9. 添加主机

我们添加一台主机,先将 rancher server 所在的主机管理起来吧,
对于由于宿主机是 Ubuntu 的, 所以主机需要先做一些小设置:

编辑 /etc/NetworkManager/NetworkManager.conf 文件,用 # 注释掉 dns=dnsmasq 配置

# dns=dnsmasq


systemctl daemon-reload
systemctl restart network-manager
systemctl restart docker

点击 “基础架构-> 主机” ,点“添加主机”
复制并执行第 5 步的命令

sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.10


好的,Rancher 的安装就完成了,其余的功能,后面再慢慢探索。

转载请注明:大后端 » Rancher之旅(一) ——Ubuntu kylin 4.0.2 部署 Rancher

喜欢 (0)or分享 (0)



  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. Dating sites for sex: http://v.ht/HqU8t?aL5ZDX9fVZysQ Popular tags: free australian christian dating sites, aspies dating site, cystic fibrosis patients dating each other, internet dating scams from ghana, online dating for university students, dating sites in mayo, good dating profile introductions, top free dating site india, net dating sider, regrettable hookup, jr s dating dilemma wikipedia, naija dating app, chronometric dating methods include, dating your ex ebook free download, is meetme a dating site, knoxville speed dating, tired of dating losers, needy dating behavior, free online dating in dhaka, luminescence dating in archaeology anthropology and geoarchaeology an overview, dating site for indian, online social dating games, dating after significant weight loss, 100 free gay dating sites uk, how to go from dating to relationship, ashlee frazier dating michael garofola, fast dating madrid, free christian dating sites in australia, 100 free dating site in usa and australia, dating services washington dc, tamil matchmaking free, halo 3 matchmaking required maps, alphabet dating ideas e, dating outfits, me and you dating site, why should a dating relationship be based on friendship, interracial dating greenville sc, zulu dating rituals, boston dating services, venezuela singles dating, dating areas in singapore, dating bay of plenty nz, relative dating and absolute dating difference, somali dating site in kenya, love text messages for dating, online dating nashville tn, i'm dating but i like someone else, dating sims for pc english, top lesbian dating websites uk, 1 dating site, group dating site, black muslim dating sites, dating range equation, dating dwarfs uk, hook up fishing lures, oasis dating app for ipad, hook up gone wrong, 3 day rule online dating, free online dating geneva, youtube virginie hocq speed dating, speed dating in south east london, single professionals online dating, soldiers dating site free, forex dating gratuit, valentines dating events london, rome online dating, hook up toggle switch amp, dating toowoomba, how do i hook up jumper cables to my car, best dating apps for 30 somethings, how to get a guy to hook up with you in high school, ar-ar dating ppt, dating therapist, top 10 speed dating tips, dating websites for witches, free dating sites of mumbai, free geek dating, married couple speed dating, 100 free interracial online dating sites, free online dating delhi ncr, youtube dating in the dark, dating nurse co worker, the originals cast dating, what makes a good internet dating profile, #1 hookup app, best dating place in davao city, problems with dating apps, dating sites tips profile, sample of dating profile for female, text dating uk, gothic dating australia, half price hook up fort wayne, persona 4 dating benefits, lyrics i do not hook up, speed dating toronto 50 plus, safe asian dating sites, poem internet dating, comic online dating, best dating apps for over 50, guy dating older girl, hook up valve, dating northern beaches sydney, dating writing, hookah hookup greensboro north carolina, i'm dating two guys, deep dating tantra templet, bravo online dating rituals of the american male cast, free chat dating websites, totally free thailand dating sites, online dating uk reviews, sample opening emails for online dating, matchmaking services chicago, rock n roll online dating, free dating application on iphone, indian dating sites ndtv, the best completely free online dating sites, dating a heroin addict, online dating late 30s, download free dating service, suitable age gap dating, dating sites in kuala lumpur, online dating iraq, free dating hookup, suggested dating site usernames, best dating advice funny, what is the law on age of dating, louisville slugger bat dating, edinburgh dating online, questions to ask a girl your not dating, costs of online dating sites, dota 2 matchmaking exposed, dating a guy with high functioning autism, dating online local, online dating green, horoscope matchmaking chart, friends with benefits dating app, dating army guys uk, online dating graphs, dating oost nederland internetdating, just jersey dating login, what type of girl am i dating, tranny dating app, oq significa dating, minecraft dating server ip, dating failure, dating for fitness singles uk, speed dating 2016, 2 ways of dating fossils, seventeen dating site, dating clubs manchester, free dating sites cincinnati, internet hook up letters crossword, dating services for single parents, amber and krystal dating rumors, internet dating free australia, taurus and libra match making, speed dating cardiff over 40, cumbria dating, scams on internet dating sites, 100 free malaysia dating sites, sixx dating show, hook up fort wayne, multiple sclerosis dating website, cz dating sites, 25 year old woman dating 50 year old man, dating sites for blacks, great expectations dating houston, dating a japanese american man, bradford singles dating, start a dating site, match making with zodiac signs, dating a celebrity, stars dating younger guys, christian arab dating websites, writing a good dating site profile, boston dating services, misstravel dating, dating shrewsbury, 100 free dating sites in south africa, not your mother's rules the new secrets for dating download, xmas specials edating dating, free online dating sites college students, tourettes dating website uk, asian dating commercial, online dating quality, hookup culture bad, singles dating site durban, speed dating gay sydney, sending a first online dating email, dating agency kuala lumpur, free dating site in uk and usa, best dating sites married, sex lies and dating blog, dating site using drupal, public relation dating site, gay speed dating washington dc, dream of dating someone you don't know, free dating sites german online, how i hacked online dating transcript, us army dating sites, new dating site 2013 for free, chemistry online dating site, bankers dating models, dating sites in brisbane australia, free lal kitab matchmaking in hindi, shanghai expat dating sites, c14 dating laboratories, dating and viability ultrasound, latino online dating websites, dating website for fat chicks, dating site spark, chapter 12.3 dating with radioactivity, matchmaking services minnesota, free sample dating letters, dating a scorpio man, that 70s show actors dating, 2015 best hookup sites, marathi dating sites in mumbai, free and easy dating websites, dating cast iron pans, true life i dating my opposite kelly, hook up vancouver bc, stars dating, teenage dating site 13 up, ten rules for dating my daughter t shirt, sheever bulldog matchmaking, glee stars dating in real life 2013, banning dating, shark tank star dating dancer, mattress man single beds, rules for dating my son list, pof dating profile tips, speed dating table quiz dublin, dating esl lesson, dating ammanford, kundali match making by name, any free nigerian dating site, han sunhwa marriage not dating, gns water dating lab, ucsc online dating, million dollar dating website, dating sites free no credit card required, singapore dating service, 25 year old woman dating 22 year old man, highschool hook up sheena, gay matchmaking vancouver, european matchmaking, tampa dating free, dating a guy who has been married 3 times, witty opening lines for dating sites, typical dating length before engagement, babysitter speed dating, my ex is dating a fat ugly girl
    Ambroseunpag2019-07-11 05:26 回复