Install docker for centos7.3 fail

Published

I want install the lastest verion of docker following with this doc.
But when i ran sudo yum install docker-ce docker-ce-cli containerd.io. I got the following error:

...
--> Finished Dependency Resolution
Error: Package: containerd.io-1.4.4-3.1.el7.x86_64 (docker-ce-nightly)
           Requires: container-selinux >= 2:2.74
           Available: 2:container-selinux-1.10.3-59.el7.centos.x86_64 (extras)
               container-selinux = 2:1.10.3-59.el7.centos
           Available: 2:container-selinux-1.12.5-14.el7.centos.x86_64 (extras)
               container-selinux = 2:1.12.5-14.el7.centos
           Available: 2:container-selinux-2.9-4.el7.noarch (extras)
               container-selinux = 2:2.9-4.el7
           Available: 2:container-selinux-2.10-2.el7.noarch (extras)
               container-selinux = 2:2.10-2.el7
Error: Package: 3:docker-ce-20.10.6-3.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
           Available: 2:container-selinux-1.10.3-59.el7.centos.x86_64 (extras)
               container-selinux = 2:1.10.3-59.el7.centos
           Available: 2:container-selinux-1.12.5-14.el7.centos.x86_64 (extras)
               container-selinux = 2:1.12.5-14.el7.centos
           Available: 2:container-selinux-2.9-4.el7.noarch (extras)
               container-selinux = 2:2.9-4.el7
           Available: 2:container-selinux-2.10-2.el7.noarch (extras)
               container-selinux = 2:2.10-2.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

My OS is CentOS Linux release 7.3.1611 (Core) . How should I handle such a situation? I have try to yum install container-selinux, but it is still have the same error.

Source: Docker Questions

Published
Categorised as centos7, docker, linux, yum Tagged , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq