Set up the repository¶
Note
The documentation herein applies only to Oracle Linux 7. Mirantis does not support Oracle 8.
You only need to set up the repository once, after which you can install MCR from the repository and upgrade as needed.
MCR supports Oracle Linux 64-bit version 7.8 or later and Red Hat Compatible Kernel (RHCK) version 3.10.0-1127 or later.
Note
Mirantis recommends using fast storage, such as solid-state media.
Remove any existing Docker repositories from
/etc/yum.repos.d/:sudo rm /etc/yum.repos.d/docker*.repo
Store
https://repos.mirantis.comin an environment variable:export DOCKERURL="https://repos.mirantis.com"
Store the value of
DOCKERURLusing ayumvariable in/etc/yum/vars/:sudo -E sh -c \ 'echo "$DOCKERURL/oraclelinux" > /etc/yum/vars/dockerurl'
Install
yum-utilsto get theyum-config-managerutility:sudo yum install -y yum-utils
Enable the Oracle
ol7_addonsrepository to ensure that you have access to thecontainer-selinuxpackage thatdocker-eerequires:sudo yum-config-manager --enable ol7_addons
Add the stable MCR repository:
sudo -E yum-config-manager \ --add-repo \ "$DOCKERURL/oraclelinux/docker-ee.repo"