Установить докер для centos7.3 не удалось

Я хочу установить последнюю версию докера с помощью этого doc< /а>. Но когда я запустил sudo yum install docker-ce docker-ce-cli containerd.io. Я получил следующую ошибку:

...
--> 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

Моя ОС CentOS Linux release 7.3.1611 (Core) . Как мне поступить в такой ситуации? Я попытался установить yum container-selinux, но все равно возникает та же ошибка.


person tidy    schedule 25.05.2021    source источник


Ответы (1)


Попробуй это:

yum install http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/container-selinux-2.74-1.el7.noarch.rpm

Требование к версии container-selinux не выполнено. Загрузите и установите необходимую версию с здесь если вам нужна другая версия.

person fam    schedule 25.05.2021
comment
Вроде не работает. Error: Package: 2:container-selinux-2.74-1.el7.noarch (/container-selinux-2.74-1.el7.noarch) Requires: selinux-policy-base >= 3.13.1-216.el7 - person tidy; 25.05.2021
comment
Прочтите это. Я надеюсь, что это помогает. - person fam; 25.05.2021