Set up the repository

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.3 or later and Red Hat Compatible Kernel (RHCK) version 3.10.0-514 or later. On Oracle Linux, MCR only supports the devicemapper storage driver.


On production workloads, you must use the devicemapper storage driver in direct-lvm mode, which requires one or more dedicated block devices. Mirantis recommends using fast storage, such as solid-state media.

  1. Remove any existing Docker repositories from /etc/yum.repos.d/:

    sudo rm /etc/yum.repos.d/docker*.repo
  2. Store in an environment variable:

    export DOCKERURL=""
  3. Store the value of DOCKERURL using a yum variable in /etc/yum/vars/:

    sudo -E sh -c \
    'echo "$DOCKERURL/oraclelinux" > /etc/yum/vars/dockerurl'
  4. Install yum-utils to get the yum-config-manager utility, and device-mapper-persistent-data and lvm2, which the device-mapper storage driver requires:

    sudo yum install -y yum-utils \
    device-mapper-persistent-data \
  5. Enable the Oracle ol7_addons repository to ensure that you have access to the container-selinux package that docker-ee requires:

    sudo yum-config-manager --enable ol7_addons
  6. Add the stable MCR repository:

    sudo -E yum-config-manager \
    --add-repo \