【问题标题】:yum install error docker百胜安装错误泊坞窗
【发布时间】:2016-05-24 23:24:18
【问题描述】:
CentOS version:  lsb_release -d
Description:    CentOS release 6.5 (Final)

我的仓库是这样的

cat /etc/yum.repos.d/docker.repo 
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg

我有一些旧版本的 docker,当我尝试安装它时,我得到一个错误。当我尝试跳过选项时,即使在我的centos上甚至不存在docker服务yum install docker-engine也会出现以下问题

Processing Conflict: docker-engine-1.7.1-1.el6.x86_64 conflicts docker-io
--> Finished Dependency Resolution
Error: docker-engine conflicts with docker-io-0.6.2-1.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest"

然后当我尝试启动它时,service docker start 不存在。

我如何清理所有 docker 的东西并从头开始?

【问题讨论】:

    标签: docker centos


    【解决方案1】:

    Docker 官方发布no longer supports RHEL/Centos 6。我认为 1.7.1 停止了,正式版本是 1.10。我建议更新到 Centos 7 或任何具有 3.10+ 内核的版本以使用最新的docker-engine,因为它已经改进了很多。

    如果你被 Centos 6.5 卡住,那么要么继续使用 EPEL docker-io 软件包,要么安装 the 1.7.1 rpm

    完全删除 Centos 6 软件包

    yum remove docker-io
    

    删除 所有 docker 数据(并且永远将其取回!)

    rm -rf /var/lib/docker
    

    删除 Docker 存储库配置

    rm /etc/yum.repos.d/docker.repo
    

    要么再次安装docker-io

    yum install docker-io
    

    或者安装docker-engine-1.7.1 rpm

    yum install http://yum.dockerproject.org/repo/main/centos/6/Packages/docker-engine-1.7.1-1.el6.x86_64.rpm
    

    启动它和泊坞窗

    service docker start
    docker run hello-world
    

    【讨论】:

      猜你喜欢
      • 2015-10-08
      • 1970-01-01
      • 2012-03-26
      • 2017-10-12
      • 2020-06-22
      • 2016-12-04
      • 2018-04-03
      • 2021-11-05
      • 2018-12-20
      相关资源
      最近更新 更多