centos7上安装docker社区版
container(容器)
docker(集装箱)
容器的优点
1、 启动速度快
2、 节省资源
3、 兼容性高
保证机器正常上网
#ping www.baidu.com
CPU需要支持虚拟化
# grep -E 'svm|vmx' /proc/cpuinfo
找到flags部分,如果其中输出有SVM或VMX,表明CPU支持虚拟化技术:
==》 svm - Secure virtual machine, AMD的虚拟化技术AMD-V
==》 vmx - Intel的虚拟化技术Intel-VT
[root@localhost ~]# grep -E 'svm|vmx' /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
安装 yum-utils,它提供了 yum-config-manager,可用来管理yum源
# yum install yum-utils -y
添加docker网络yum源docker-ce.repo
# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
配置网络yum源
http://mirrors.163.com/.help/centos.html
使用wget下载163的源
#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
重新创建缓存文件
三个随便选一个执行即可
# yum makecache
#yum makecache fast
# yum clean all
注意:添加完网络yum源后,执行以下命令
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
安装docker
# yum install docker-ce
报错信息
Total 4.9 MB/s | MB ::
Retrieving key from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
Fingerprint: c1da c52d e8a4 386d ba43 fca2 c105 b9de
From : http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y Public key for libcgroup-0.41-.el7.x86_64.rpm is not installed Failing package is: libcgroup-0.41-.el7.x86_64
GPG Keys are configured as: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
解决办法
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
再次安装
# yum install docker-ce
确认docker服务的安装
# yum list installed | grep docker
[root@localhost ~]# yum list installed | grep docker
docker.x86_64 :1.13.-.gitb2f74b2.el7.centos @extrs
docker-client.x86_64 :1.13.-.gitb2f74b2.el7.centos @extrs
docker-common.x86_64 :1.13.-.gitb2f74b2.el7.centos @extrs
开启docker并查看版本
# systemctl start docker
# docker version
docker安装完成
附上安装源
163的源
centos-base.repo
[base]
name=CentOS-$releasever - Base - .com
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
gpgcheck= [updates]
name=CentOS-$releasever - Updates - .com
baseurl=http://mirrors.163.com/centos/7/updates/x86_64/
gpgcheck= [extras]
name=CentOS-$releasever - Extras - .com
baseurl=http://mirrors.163.com/centos/7/extras/x86_64/
gpgcheck=
docker-ce.repo
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$basearch/stable
enabled=
gpgcheck=
#gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
参考博客
centos7上安装docker
https://www.cnblogs.com/yufeng218/p/8370670.html
https://blog.csdn.net/xixiworld/article/details/71438794
CentOS7 配置网络和yum源
https://blog.csdn.net/weixin_41782053/article/details/80524515
centos7下yum安装docker报找不到可用包docker
https://blog.csdn.net/qq751470431/article/details/77771786
centos7上安装docker社区版的更多相关文章
- centos7上安装docker-ce社区版
报错:Error: docker-ce-selinux conflicts with 2:container-selinux-2.12-2.gite7096ce.el7.noarch 转载:http: ...
- Centos7上安装docker (转)
Centos7上安装docker Docker从1.13版本之后采用时间线的方式作为版本号,分为社区版CE和企业版EE. 社区版是免费提供给个人开发者和小型团体使用的,企业版会提供额外的收费服务,比如 ...
- 在centos7上安装Docker CE
Docker CE的基本安装 https://docs.docker.com/engine/installation/linux/docker-ce/centos/ 一.系统要求 1.安装Docker ...
- Centos7上安装docker
Docker从1.13版本之后采用时间线的方式作为版本号,分为社区版CE和企业版EE. 社区版是免费提供给个人开发者和小型团体使用的,企业版会提供额外的收费服务,比如经过官方测试认证过的基础设施.容器 ...
- Centos7上安装docker (新手版本)
1首先要有一个安装好的Centos7 2打开终端,输入一下命令(自动安装最新版本) curl -fsSL https://get.docker.com | bash -s docker --mirro ...
- 在CentOS7上安装Docker
具体过程如下 到网站下载centos7: http://isoredirect.centos.org/ http://isoredirect.centos.org/centos/7/isos/x86_ ...
- Docker:测试环境的准备-centos7上安装docker
Dockers官方部署文档:https://docs.docker.com/install/linux/docker-ce/centos/ 1.建议先关闭 selinux (selinux是 linu ...
- CentOS7下安装Gitlab社区版【安装步骤、IP改域名、修改端口】
这两天一直在给公司的服务器配置Gitlab(10.5.4).过程很是痛苦,所以把过程记录一下. 1.安装CentOS7 从官网上下载了最新版CentOS-7-x86_64-DVD-1708.iso.用 ...
- Centos7上安装docker及使用scrapy-splash
下载docker https://www.cnblogs.com/yufeng218/p/8370670.html 安装scrapy-splash https://www.cnblogs.com/ ...
随机推荐
- hdu6621 二分加主席树
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6621 Problem Description You have an array: a1, a2, ...
- Airtest入门篇
Airtest是啥? 简单理解:基于图像识别的UI自动化测试框架 俗人理解:截图即可完成自动化测试 适用场景:游戏.APP.PC软件,支持Window.Android.IOS Airtest官方文档 ...
- Redis系列(二):Redis的5种数据结构及其常用命令
上一篇博客,我们讲解了什么是Redis以及在Windows和Linux环境下安装Redis的方法, 没看过的同学可以点击以下链接查看: Redis系列(一):Redis简介及环境安装. 本篇博客我们来 ...
- IDEA中的JUNIT测试
安装插件 Ctrl+Alt+s→Plugins→junitgenerator v2.0 Alt+insert 选中JUnit test 中JUnit4 package test.com.demo.co ...
- [转]在C#中调用C语言函数(静态调用Native DLL,Windows & Microsoft.Net平台)
原文:https://blog.csdn.net/yapingxin/article/details/7288325 对于不太了解.Net的人,如果想要了解.Net,我必须给他介绍P/Invoke.P ...
- Centos搭建PXE,安装部署操作系统
centos系统搭建PXE网络安装centos+ubuntu+Windows Centos搭建PXE,安装部署操作系统 一 . 原理: 1.什么是PXE: PXE(Pre-boot Execution ...
- Charles的安装及使用过程
一.charles的使用 1.1 charles的说明 Charles其实是一款代理服务器,通过过将自己设置成系统(电脑或者浏览器)的网络访问代理服务器,然后截取请求和请求结果达到分析抓包的目的.该 ...
- springBoot的事件机制---GenericApplicationListener用法
springBoot的事件机制---GenericApplicationListener用法 什么是ApplicationContext? 它是Spring的核心,Context我们通常解释为上下文环 ...
- flask使用blinker信号机制解耦业务代码解决ImportError: cannot import name 'app',以异步发送邮件为例
百度了大半天,不知道怎么搞,直到学习了blinker才想到解决办法,因为之前写java都是文件分开的, 所以发送邮件业务代码也放到view里面,但是异步线程需要使用app,蛋疼的是其他模块不能从app ...
- MGR监控报警
一.报警思路 m.conf文件记录配置信息,只需要修改这个文件的内容即可(需要将mysql_stat.sh里面的信息写到这里,进行中) mysql_stat.sh文件作为MGR状态监测脚本,加入定时任 ...