安装Docker时出现错误

时间:2018-10-03 11:20:01

标签: docker centos install

我已经安装了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
.............

1 个答案:

答案 0 :(得分:2)

问题似乎是1fr的安装版本为docker-ce-cli,比您要安装的18.09.0.ce-1.1.beta1.el7软件包docker-ce的版本新。 18.06.1.ce-3.el7包装没有为此准备。

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

相关问题