Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error package docker-ce requires container-selinux = 2.9 centos 7

Tags:

docker

Command: yum -y install docker-ce

Result:

Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package docker-ce.x86_64 0:18.06.0.ce-3.el7 will be installed --> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-18.06.0.ce-3.el7.x86_64 --> Finished Dependency Resolution Error: Package: docker-ce-18.06.0.ce-3.el7.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

like image 447
Vivek Pakmode Avatar asked Jul 23 '18 12:07

Vivek Pakmode


2 Answers

Resolved with installing container-selinux-2.9 dependency with following command:

sudo yum install ftp://bo.mirror.garr.it/1/slc/centos/7.1.1503/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
like image 188
Vivek Pakmode Avatar answered Oct 13 '22 18:10

Vivek Pakmode


Use below link to install container-selinux from a trust able source

sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.55-1.el7.noarch.rpm

Steps to install Docker-CE on RHEL 7.5

https://github.com/dineshsood/dockers/wiki

like image 36
sdin Avatar answered Oct 13 '22 20:10

sdin