标签:epo ota https www. 管理 gpg 启动 group fail
container(容器)
docker(集装箱)
容器的优点
1、 启动速度快
2、 节省资源
3、 兼容性高
保证机器正常上网
#ping www.baidu.com
安装 yum-utils,它提供了 yum-config-manager,可用来管理yum源
# yum install yum-utils -y
添加docker网络yum源docker-ce.repo
# yum-config-manager --add-repo https://download.docker.com/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 | 72 MB 00:00:14 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 1664 e8a4 386d ba43 0946 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-20.el7.x86_64.rpm is not installed Failing package is: libcgroup-0.41-20.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并查看版本
# systemctl start docker
# docker version
docker安装完成
参考博客
centos7上安装docker
https://www.cnblogs.com/yufeng218/p/8370670.html
CentOS7 配置网络和yum源
https://blog.csdn.net/weixin_41782053/article/details/80524515
标签:epo ota https www. 管理 gpg 启动 group fail
原文地址:https://www.cnblogs.com/djlsunshine/p/10178312.html