gpt4 book ai didi

docker - 无法在RHEL 8上安装Docker

转载 作者:行者123 更新时间:2023-12-02 18:27:33 25 4
gpt4 key购买 nike

我想在rhel 8上安装docker。

我收到以下错误,不确定为什么需要帮助。

[root@mano mano]# yum install docker-ce-18.09.9
Cannot find a valid baseurl for repo: InstallMedia, ignoring this repo.
Last metadata expiration check: 0:11:14 ago on Fri 20 Sep 2019 02:42:53 PM IST.
Error:
Problem: package docker-ce-3:18.09.9-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.2-3.3.el7.x86_64 is excluded
- package containerd.io-1.2.2-3.el7.x86_64 is excluded
- package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.6-3.2.el7.x86_64 is excluded
- package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

我已经安装了containered.io

最佳答案

RHEL由于某种原因阻止了Containerd

您必须通过运行以下命令行手动安装它;

yum -y install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm

之后, yum install docker-ce应该可以正常工作。

请注意,您还必须禁用 firewalld,否则DNS损坏。

为此,您可以运行:
systemctl disable firewalld

关于docker - 无法在RHEL 8上安装Docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58027284/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com