Closed kristiehoward closed 7 years ago
Just to confirm a solution here for me: You really just need to ensure, that on your rhel7 system the rhel-7-server-extras-rpms is enabled. I for myself had to manually add a proxy location of the repository due to company policy which finally made container-selinux dependency accessible for docker-ce 17.06. Thanks to the guys here pointing that out.
For me, RHEL 7.4 workstation works with the folllowing command:
subscription-manager repos --enable=rhel-7-workstation-extras-rpms
Breaking on 17.09 ce too.
Yes, while installing 17.09-ce
Error: Package: docker-ce-17.09.0.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
Some one suggested sudo yum-config-manager --enable extras
, but that did not fix the issue
I have same problem.
sudo yum install ftp://fr2.rpmfind.net/linux/centos/7.3.1611/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
solved it for me
This solution has already been documented for almost two months. There is no need to keep adding +1 to it.
ftp://ftp.icm.edu.pl/vol/rzm6/linux-centos-vault/7.3.1611/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm yum -y install docker-ce
Resolves the issue
Once again, the Docs were already updated on September 6 to address this issue. We don't need any other workarounds because the docs have been correct for more than 3 months. :)
Hello,
I am installing docker CE ( using offline .rpm packages ) on my client environment.
Getting below error, any idea what is this:
[comptel_user@BDRVL-PA-DAW01 RPM Packages]$ sudo yum install --setopt=obsoletes=0 docker-ce-17.06.0.ce-1.el7.centos.x86_64.rpm docker-ce-17.06.1.ce-1.el7.centos.x86_64.rpm --skip-broken Loaded plugins: product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Examining docker-ce-17.06.0.ce-1.el7.centos.x86_64.rpm: docker-ce-17.06.0.ce-1.el7.centos.x86_64 Marking docker-ce-17.06.0.ce-1.el7.centos.x86_64.rpm to be installed Examining docker-ce-17.06.1.ce-1.el7.centos.x86_64.rpm: docker-ce-17.06.1.ce-1.el7.centos.x86_64 Marking docker-ce-17.06.1.ce-1.el7.centos.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package docker-ce.x86_64 0:17.06.0.ce-1.el7.centos will be installed --> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 ---> Package docker-ce.x86_64 0:17.06.1.ce-1.el7.centos will be installed --> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-ce-17.06.1.ce-1.el7.centos.x86_64
Packages skipped because of dependency problems: docker-ce-17.06.0.ce-1.el7.centos.x86_64 from /docker-ce-17.06.0.ce-1.el7.centos.x86_64 docker-ce-17.06.1.ce-1.el7.centos.x86_64 from /docker-ce-17.06.1.ce-1.el7.centos.x86_64
Thanks
This system is not registered to Red Hat Subscription Management.
You can use subscription-manager to register.
Looks like you're attempting to install the CentOS package on a RHEL server, but don't have an active Red Hat subscription (thus yum won't be able to get updated packages).
In addition, the --setopt=obsoletes=0
was discussed above if you need to downgrade to an older version of Docker (before 17.06).
I'm locking the conversation on this issue, because the documentation was updated. If you think there is an issue with the updated installation instructions;
https://docs.docker.com/engine/installation/linux/centos/#install-using-the-repository
Expected behavior
No error with
sudo yum install docker-ce
Actual behavior
Information
Steps to reproduce the behavior
Follow instructions to install docker on centos 7
https://docs.docker.com/engine/installation/linux/centos/#install-using-the-repository