【问题标题】:I am getting an error when I install Docker安装 Docker 时出现错误
【发布时间】:2019-03-08 14:49:50
【问题描述】:

我已经安装了 docker,它工作得很好。我现在正在尝试安装 Centos 操作系统,但我不断收到错误消息。错误如下。

+ sh -c 'yum install -y -q docker-ce'

Transaction check error:
  file /usr/bin/docker from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/bash-completion/completions/docker from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-attach.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-checkpoint-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-checkpoint-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-checkpoint-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-checkpoint.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-commit.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-config-create.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-config-inspect.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-config-ls.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  file /usr/share/man/man1/docker-config-rm.1.gz from install of docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
.............

【问题讨论】:

  • 尝试使用版本号安装。我认为它与版本号冲突。 docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-0:18.09.0.ce-1.1.beta1.el7.x86_64
  • 谢谢我解决了错误,卸载并重新安装

标签: docker centos installation


【解决方案1】:

问题似乎是docker-ce-cli 的安装版本是18.09.0.ce-1.1.beta1.el7,它比您尝试安装的docker-ce 软件包的版本18.06.1.ce-3.el7 更新。 docker-ce 包装并没有为此做好准备。

在安装docker-ce 软件包之前,您必须降级或删除docker-ce-cli

【讨论】:

  • 谢谢我解决了错误,卸载并重新安装
猜你喜欢
  • 1970-01-01
  • 2015-11-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-24
  • 1970-01-01
  • 2020-10-28
  • 2019-08-01
  • 2021-06-03
相关资源
最近更新 更多