- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试在 redhat 8
上安装 docker-ce
但失败
首先,我尝试
# systemctl enable docker
Failed to enable unit: Unit file docker.service does not exist.
所以,我想为守护进程安装docker-ce
# yum install yum-utils
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum repolist -v
# yum list docker-ce --showduplicates | sort -r
# yum install docker-ce
但是在这一步中,我得到了这个:
# yum install docker-ce
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:02:58 ago on Fri 26 Jul 2019 02:11:48 PM UTC.
Error:
Problem: package docker-ce-3:19.03.1-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.3.el7.x86_64 is excluded
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
我创建了一个 redhat 帐户,但遇到了这个问题:
# subscription-manager register --force
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: xxxxxxxxxxx
Password:
The system has been registered with ID: 6c07b574-2601-4a84-90d4-a9dfdc499c2f
The registered system name is: ip-172-31-11-95.us-east-2.compute.internal
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 566, in load
ret = self._repo.load()
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 503, in load
return _repo.Repo_load(self)
RuntimeError: Failed to synchronize cache for repo 'rhui-client-config-server-8'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 173, in update_check
self._sync_with_server(uep, consumer_uuid)
File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 477, in _sync_with_server
combined_profile = self.current_profile
File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 430, in current_profile
module_profile = get_profile('modulemd').collect()
File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 347, in get_profile
profile = PROFILE_MAP[profile_type]()
File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 54, in __init__
self.content = self.__generate()
File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 76, in __generate
base.fill_sack()
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 400, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 135, in _add_repo_to_sack
repo.load()
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 568, in load
raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: Failed to synchronize cache for repo 'rhui-client-config-server-8'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/sbin/subscription-manager", line 11, in <module>
load_entry_point('subscription-manager==1.23.8', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python3.6/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
return managercli.ManagerCLI().main()
File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2918, in main
ret = CLI.main(self)
File "/usr/lib64/python3.6/site-packages/subscription_manager/cli.py", line 183, in main
return cmd.main()
File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 506, in main
return_code = self._do_command()
File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 1368, in _do_command
profile_mgr.update_check(self.cp, consumer['uuid'], True)
File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 457, in update_check
return CacheManager.update_check(self, uep, consumer_uuid, force)
File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 183, in update_check
raise Exception(_("Error updating system data on the server, see /var/log/rhsm/rhsm.log "
Exception: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details.
最佳答案
禁用container-tools
模块(默认安装)可以解决冲突:dnf module禁用container-tools
但是,您首先需要安装由同一模块提供的 container-selinux
依赖项:
[root@centos8-2gb-hel1-1 ~]# yum install container-selinux
...
[root@centos8-2gb-hel1-1 ~]# yum module disable container-tools
Last metadata expiration check: 0:05:02 ago on Mon Feb 10 16:31:17 2020.
Dependencies resolved.
======================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================
Disabling modules:
container-tools
Transaction Summary
======================================================================================================================
Is this ok [y/N]: y
Complete!
现在可以使用之前安装的 container-selinux
版本和新的 containerd.io
依赖项正常安装 docker-ce
软件包:
[root@centos8-2gb-hel1-1 ~]# yum install docker-ce
Last metadata expiration check: 0:06:26 ago on Mon Feb 10 16:31:17 2020.
Dependencies resolved.
======================================================================================================================
Package Arch Version Repository Size
======================================================================================================================
Installing:
docker-ce x86_64 3:19.03.5-3.el7 docker-ce-stable 24 M
Installing dependencies:
libcgroup x86_64 0.41-19.el8 BaseOS 70 k
tar x86_64 2:1.30-4.el8 BaseOS 838 k
containerd.io x86_64 1.2.10-3.2.el7 docker-ce-stable 23 M
docker-ce-cli x86_64 1:19.03.5-3.el7 docker-ce-stable 39 M
Transaction Summary
======================================================================================================================
Install 5 Packages
Total download size: 108 M
Is this ok [y/N]:
RHEL/CentOS 8(不包括 containerd.io
软件包)与 runc
提供的与 container-tools
中的 runc 软件包冲突有关模块:https://bugzilla.redhat.com/show_bug.cgi?id=1756473
[root@centos8-2gb-hel1-1 ~]# yum provides runc
Last metadata expiration check: 0:07:21 ago on Mon Feb 10 16:31:17 2020.
...
containerd.io-1.2.10-3.2.el7.x86_64 : An industry-standard container runtime
Repo : docker-ce-stable
Matched from:
Provide : runc
runc-1.0.0-60.rc8.module_el8.1.0+237+63e26edc.x86_64 : CLI for running Open Containers
Repo : AppStream
Matched from:
Provide : runc = 1.0.0-60.rc8.module_el8.1.0+237+63e26edc
关于docker - 在 Redhat 8 上安装 docker-ce,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57221919/
认为这可能对其他人有帮助。如果您运行的是 headless (headless)虚拟机,可能不会立即明白如何安装 liquibase。我正在使用 redhat linux 盒子,想知道使用哪个命令来尝
哪里可以找到 Redhat 的 nash 实用程序的源代码? 谢谢,陈兹 最佳答案 git://git.fedoraproject.org/git/hosted/mkinitrd 关于redhat -
我已经在我的 Red Hat Enterprise Linux 7.2 服务器上安装了 collectd。 我也在 ubuntu 14.04 服务器上安装了它。 在 ubuntu 中,当我运行 col
我一直在尝试找出如何将我自己的包添加为 kickstart 安装的一部分(特别是 mondo 包),但使用 %packages 指令而不是 post 脚本中的 rpm 命令。我尝试使用 kicksta
我是 RedHat Linux 的新手,并在 VirtualBox 上安装了 7.4 版本。按照RedHat的安装步骤,我需要先订阅RedHat才能在RedHat上下载。 使用的命令是 subscri
我正在尝试在具有两个 Xenon CPU 和 RAID 1 以及两个 2TB HDD 的服务器上安装 Redhat Enterprise Linux 64x 版本 6.3 或 6.4。安装会非常顺利,
[axaysd@localhost ~]$ sudo pip install lightfm [sudo] password for axaysd: Collecting lightfm Usin
我正在尝试在 redhat 6.3 中安装 msodbcsql v13。它显示 unixODBC(64 位) >= 2.3.1 需要在安装 msodbcsql 之前安装的依赖项错误。 我尝试在命令下运
我正在Fedora linux平台上学习qt,在我制作示例cpp时它抛出了如下g++错误 g++ error:/usr/lib/rpm/redhat/redhat-hardened-cc1: No s
我即将开始一个项目,将我们的应用程序套件从 RedHat ES4 移植到 RedHat ES6。这有多复杂?我们过去在不同版本之间有过不同的体验,想知道在迁移到 ES6 的过程中是否有任何特定的陷阱。
我正在尝试编译一个使用 Qt 5.5 的应用程序(Qt Installer Framework),这样生成的(静态链接的)二进制文件可以在旧的 Linux 系统(例如 RedHat 5 甚至 RedH
我从 Oracle 中尝试这个查询: select * from "a_table"@Postgres; 这是我收到的错误消息: ORA-28545: error diagnosed by Net8
有没有办法询问yum哪个组包含给定的程序包?我知道如何询问给定组中有哪些软件包,并且可以编写一个快速脚本来遍历所有组,但是有一个比这更简单的机制会很好。 最佳答案 如果您只是在寻找一种供人类使用的“简
我有一个软件包,我为其创建了 RPM。由于 IP 原因,我无法在此处粘贴整个 RPM,但这里是问题的要点: %pre /sbin/pidof program if [ "$?" -eq "0" ] t
我注意到rpmbuild(-bb和--buildroot选项)根据您使用的操作系统在不同的位置创建.rpm: GNU / Linux Ubuntu = 9.10:/ home / rpmbuild
关闭。这个问题是not about programming or software development .它目前不接受答案。 这个问题似乎不是关于 a specific programming
关闭。这个问题是not about programming or software development .它目前不接受答案。 这个问题似乎不是关于 a specific programming
相信对RedHat Linux或CentOS比较熟悉的人,应该是比较了解yum源的,它比普通的rpm包安装,要方便的多,为何呢?因为它能顺利的解决rpm包之间的依赖关系。你要是根据rpm包之间的依赖
1.在终端下进入root权限,首先看看有没有安装tftp服务器和客户端组件,验证命令:rpm -qa | grep tftp(看图) 如果没有图中所显示的效果,那么你的主机上可能没有安装tft
Closed. This question does not meet Stack Overflow guidelines。它当前不接受答案。 想要改善这个问题吗?更新问题,以便将其作为on-topi
我是一名优秀的程序员,十分优秀!