Installing docker on redhat linux - issue with 'container-selinux' and 'selinux-policy'

元气小坏坏 提交于 2020-01-15 09:22:52

问题


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

回答1:


sudo yum --enablerepo=* install container-selinux

did the trick for me on Oracle Linux 7.4.

After the installation I could yum install docker-ce.




回答2:


Red Hat doesn't provide docker packages for RHEL6, only for RHEL7. See Does Red Hat provide docker for RHEL 6?

If using RHEL7 is not an option for you, then the only way to get Docker on RHEL6 is to use packages from Docker, Inc., but then you won't have support from Red Hat. See this question: Install docker on RedHatLinux 6.7.



来源:https://stackoverflow.com/questions/47579041/installing-docker-on-redhat-linux-issue-with-container-selinux-and-selinux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!