本文介绍了在Redhat Linux上安装Docker-'container-selinux'和'selinux-policy'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在EC2上安装了Linux,并尝试安装Docker。

如何解决 container-selinux和 selinux-policy的问题?

I have Linux on EC2 and trying to install Docker.
How to resolve issue with 'container-selinux' and 'selinux-policy'?

lsb_release -d
Description:    Red Hat Enterprise Linux Server release 6.9 (Santiago)

sudo rpm -i container-selinux-2.9-4.el7.noarch.rpm
warning: container-selinux-2.9-4.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
    selinux-policy >= 3.13.1-39 is needed by container-selinux-2:2.9-4.el7.noarch
    selinux-policy-base >= 3.13.1-39 is needed by container-selinux-2:2.9-4.el7.noarch
    selinux-policy-targeted >= 3.13.1-39 is needed by container-selinux-2:2.9-4.el7.noarch


推荐答案

sudo yum --enablerepo=* install container-selinux

在Oracle Linux 7.4上帮了我大忙。

did the trick for me on Oracle Linux 7.4.

安装后我可以 yum install做cker-ce

这篇关于在Redhat Linux上安装Docker-'container-selinux'和'selinux-policy'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 13:01