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.com
in an environment variable:export DOCKERURL="https://repos.mirantis.com"
Store the value of
DOCKERURL
using ayum
variable in/etc/yum/vars/
:sudo -E sh -c \ 'echo "$DOCKERURL/oraclelinux" > /etc/yum/vars/dockerurl'
Install
yum-utils
to get theyum-config-manager
utility:sudo yum install -y yum-utils
Enable the Oracle
ol7_addons
repository to ensure that you have access to thecontainer-selinux
package thatdocker-ee
requires:sudo yum-config-manager --enable ol7_addons
Add the stable MCR repository:
sudo -E yum-config-manager \ --add-repo \ "$DOCKERURL/oraclelinux/docker-ee.repo"