CentOS 6 安装docker的问题

安装 docker-ce错误

错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
          Requires: libseccomp >= 2.3
错误:Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
          Requires: libseccomp
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
          Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
          Requires: systemd
错误:Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
          Requires: systemd
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
          Requires: libsystemd.so.0()(64bit)
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
          Requires: libseccomp.so.2()(64bit)
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
          Requires: container-selinux >= 2:2.74
错误:Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
          Requires: container-selinux >= 2:2.74
 You could try using --skip-broken to work around the problem

后面就找解决方案
1.尝试升级了内核,还是不行
2.安装低版本的docker

首先进入如图中的这个路径下 删除掉docker-ce.repo
在这里插入图片描述
然后安装执行如下命令

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

刷新缓存

yum clean all
yum makecache

安装docker

yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm

启动docker和查看版本

service docker start
docker version

参考链接
https://blog.csdn.net/makersy/article/details/105811271?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值