Docker-Rancher-K8S教程.docx





《Docker-Rancher-K8S教程.docx》由会员分享,可在线阅读,更多相关《Docker-Rancher-K8S教程.docx(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Centos7 上安装 dockerDocker从1.13版本之后采用时间线的方式作为版本号,分为社区版CE和企 业版EEo社区版是免费提供给个人开发者和小型团体使用的,企业版会提供额外的收费服 务,比方经过官方测试认证过的基础设施、容器、插件等。社区版按照stable和edge两种方式发布,每个季度更新stable版本,如17.06,17.09:每个月份更新edge版本,如17.09, 17.10。一、安装 docker1、Docker要求CentOS系统的内核版本高于3.10 ,查看本页面的前提条件来验 证你的CentOS版本是否支持Docker。通过uname -r命令查看你当前的内核版
2、本$ uname - r$ cat /etc/redhat-release$ cat /etc/issue$ cat /proc/version$ grep model name /proc/cpuinfo$ cat /proc/cpuinfo2、使用root权限登录CentoSo确保yum包更新到最新。 $ sudo yum update3、卸载旧版本(如果安装过旧版本的话)$ sudo yum remove docker docker-common docker-selinux docker-engine4、安装需要的软件包,yum-util提供yum-configmanager功能,另外
3、两 个是devicemapper驱前依赖的$ sudo yum install -y yum-utils device-mapper-persistent-data lvm25、设置yum源$ sudo yum-config-manager -add-repo s:/download, docker, com/linux/ccntos/docker-ce. repo$ yum-config-manager-add-repo httD:20rootlocalhost local# sudo yum-config-manager -add-repo s: 已加载插件:fastestmirror,
4、langpacksadding repo from: s:/download.docker /linux/centos/docker-ce.repograbbing file .repo6、可以查看所有仓库中所有docker版本,并选择特定版本安装$ yum list docker-ce -showduplicates | sort - rroot(alocalhost local# yum list docker-ce - -showduplicates | sort - r 已加载插件:fastestmirror, langpacks可安装的软件包* updates: Loading mi
5、rror speeds from cached hostfile* extras: 17.12.O.ce-l.el7.centos 17.09.l.ce-1.el7.centos 17.09.0.ce-l.el7.centos 17.06.2.ce-1.el7.centos 17.06.l.ce-1.el7.centos 17.06.0.ce-l.el7.centos 17.03.2.ce-1.el7.17.12.O.ce-l.el7.centos 17.09.l.ce-1.el7.centos 17.09.0.ce-l.el7.centos 17.06.2.ce-1.el7.centos 1
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Docker Rancher K8S 教程

限制150内