首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在CentOS上安装码头?

如何在CentOS上安装码头?
EN

Unix & Linux用户
提问于 2020-08-09 22:58:55
回答 1查看 2K关注 0票数 2

遇到一些麻烦,安装码头:

代码语言:javascript
复制
[root@rolly ~]# 
[root@rolly ~]# sudo yum install -y yum-utils
Docker CE Stable - x86_64                                                                            42 kB/s | 3.5 kB     00:00    
Package yum-utils-4.0.12-3.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@rolly ~]# 
[root@rolly ~]# sudo yum-config-manager     --add-repo     https://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
[root@rolly ~]# 
[root@rolly ~]# sudo yum install docker-ce docker-ce-cli containerd.io
Docker CE Stable - x86_64                                                                            22 kB/s | 3.5 kB     00:00    
Package containerd.io-1.2.0-3.el7.x86_64 is already installed.
Error: 
 Problem: package docker-ce-3:19.03.12-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  - package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@rolly ~]# 
[root@rolly ~]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 8.2.2004 (Core) 
Release:    8.2.2004
Codename:   Core
[root@rolly ~]# 

我应该和nobest一起去吗?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2020-08-10 05:25:13

如果最新版本不可安装,则可以运行:

代码语言:javascript
复制
dnf install docker-ce --nobest

安装另一个版本而不是最后一个版本。有点伤感,但很管用。

票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/603693

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档