--- description: Instructions for installing Docker Engine - Enterprise on RHEL keywords: requirements, installation, rhel, rpm, install, uninstall, upgrade, update redirect_from: - /engine/installation/rhel/ - /installation/rhel/ - /engine/installation/linux/rhel/ - /engine/installation/linux/docker-ee/rhel/ - /install/linux/docker-ee/rhel/ title: Get Docker Engine - Enterprise for Red Hat Enterprise Linux --- {% assign linux-dist = "rhel" %} {% assign linux-dist-cap = "RHEL" %} {% assign linux-dist-url-slug = "rhel" %} {% assign linux-dist-long = "Red Hat Enterprise Linux" %} {% assign package-format = "RPM" %} {% assign gpg-fingerprint = "77FE DA13 1A83 1D29 A418 D3E8 99E5 FF2E 7668 2BC9" %} There are two ways to install and upgrade [Docker Enterprise](https://www.docker.com/enterprise-edition/){: target="_blank" class="_" } on {{ linux-dist-long }}: - [YUM repository](#repo-install-and-upgrade): Set up a Docker repository and install Docker Engine - Enterprise from it. This is the recommended approach because installation and upgrades are managed with YUM and easier to do. - [RPM package](#package-install-and-upgrade): Download the {{ package-format }} package, install it manually, and manage upgrades manually. This is useful when installing Docker Engine - Enterprise on air-gapped systems with no access to the internet. Docker Engine - Community is _not_ supported on {{ linux-dist-long }}. ## Prerequisites This section lists what you need to consider before installing Docker Engine - Enterprise. Items that require action are explained below. - Use {{ linux-dist-cap }} 64-bit 7.4 and higher on `x86_64`. - Use storage driver `overlay2` or `devicemapper` (`direct-lvm` mode in production). - Find the URL for your Docker Engine - Enterprise repo at [Docker Hub](https://hub.docker.com/my-content){: target="_blank" class="_" }. - Uninstall old versions of Docker. - Remove old Docker repos from `/etc/yum.repos.d/`. > **Note:** > IBM Z (`s390x`) is supported for Docker Engine - Enterprise 17.06.xx only. If > you're going to install Docker on an IBM Z system, disable SELinux before > installing/upgrading and make sure you're installing Docker Engine - > Enterprise 17.06.xx. ### Architectures and storage drivers Docker Engine - Enterprise supports {{ linux-dist-long }} 64-bit, versions 7.4 and higher running on `x86_64`. See [Compatibility Matrix](https://success.docker.com/article/compatibility-matrix){: target="_blank" class="_" } for specific details. On {{ linux-dist-long }}, Docker Engine - Enterprise supports storage drivers, `overlay2` and `devicemapper`. In Docker Engine - Enterprise 17.06.2-ee-5 and higher, `overlay2` is the recommended storage driver. The following limitations apply: - [OverlayFS](/storage/storagedriver/overlayfs-driver){: target="_blank" class="_" }: If `selinux` is enabled, the `overlay2` storage driver is supported on {{ linux-dist-cap }} 7.4 or higher. If `selinux` is disabled, `overlay2` is supported on {{ linux-dist-cap }} 7.2 or higher with kernel version 3.10.0-693 and higher. - [Device Mapper](/storage/storagedriver/device-mapper-driver/){: target="_blank" class="_" }: On production systems using `devicemapper`, you must use `direct-lvm` mode, which requires one or more dedicated block devices. Fast storage such as solid-state media (SSD) is recommended. Do not start Docker until properly configured per the [storage guide](/storage/storagedriver/device-mapper-driver/){: target="_blank" class="_" }. ### FIPS 140-2 cryptographic module support [Federal Information Processing Standards (FIPS) Publication 140-2](https://csrc.nist.gov/csrc/media/publications/fips/140/2/final/documents/fips1402.pdf) is a United States Federal security requirement for cryptographic modules. With Docker Engine - Enterprise Basic license for versions 18.03 and later, Docker provides FIPS 140-2 support in RHEL 7.3, 7.4 and 7.5. This includes a FIPS supported cryptographic module. If the RHEL implementation already has FIPS support enabled, FIPS is also automatically enabled in the Docker engine. If FIPS support is not already enabled in your RHEL implementation, visit the [Red Hat Product Documentation](https://access.redhat.com/documentation/en-us/) for instructions on how to enable it. To verify the FIPS-140-2 module is enabled in the Linux kernel, confirm the file `/proc/sys/crypto/fips_enabled` contains `1`. ``` $ cat /proc/sys/crypto/fips_enabled 1 ``` > **Note:** > FIPS is only supported in Docker Engine Engine - Enterprise. UCP > and DTR currently do not have support for FIPS-140-2. You can override FIPS 140-2 compliance on a system that is not in FIPS 140-2 mode. Note, this **does not** change FIPS 140-2 mode on the system. To override the FIPS 140-2 mode, follow ths steps below. Create a file called `/etc/systemd/system/docker.service.d/fips-module.conf`. Add the following: ``` [Service] Environment="DOCKER_FIPS=1" ``` Reload the Docker configuration to systemd. `$ sudo systemctl daemon-reload` Restart the Docker service as root. `$ sudo systemctl restart docker` To confirm Docker is running with FIPS-140-2 enabled, run the `docker info` command. {% raw %} ``` docker info --format {{.SecurityOptions}} [name=selinux name=fips] ``` {% endraw %} ### Disabling FIPS-140-2 If the system has the FIPS 140-2 cryptographic module installed on the operating system, it is possible to disable FIPS-140-2 compliance. To disable FIPS 140-2 in Docker but not the operating system, set the value `DOCKER_FIPS=0` in the `/etc/systemd/system/docker.service.d/fips-module.conf`. Reload the Docker configuration to systemd. `$ sudo systemctl daemon-reload` Restart the Docker service as root. `$ sudo systemctl restart docker` ### Find your Docker Engine - Enterprise repo URL To install Docker Enterprise, you will need the URL of the Docker Enterprise repository associated with your trial or subscription: 1. Go to [https://hub.docker.com/my-content](https://hub.docker.com/my-content){: target="_blank" class="_" }. All of your subscriptions and trials are listed. 2. Click the **Setup** button for **Docker Enterprise Edition for {{ linux-dist-long }}**. 3. Copy the URL from **Copy and paste this URL to download your Edition** and save it for later use. You will use this URL in a later step to create a variable called, `DOCKERURL`. ### Uninstall old Docker versions The Docker Engine - Enterprise package is called `docker-ee`. Older versions were called `docker` or `docker-engine`. Uninstall all older versions and associated dependencies. The contents of `/var/lib/docker/` are preserved, including images, containers, volumes, and networks. ```bash $ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine ``` ## Repo install and upgrade The advantage of using a repository from which to install Docker Engine - Enterprise (or any software) is that it provides a certain level of automation. RPM-based distributions such as {{ linux-dist-long }}, use a tool called YUM that work with your repositories to manage dependencies and provide automatic updates. {% capture selinux-warning %} > Disable SELinux before installing Docker Engine - Enterprise 17.06.xx on IBM Z > systems > > There is currently no support for `selinux` on IBM Z systems. If you attempt > to install or upgrade Docker Engine - Enterprise on an IBM Z system with > `selinux` enabled, an error is thrown that the `container-selinux` package is > not found. Disable `selinux` before installing or upgrading Docker on IBM Z. > IBM Z systems are supported on Docker Engine - Enterprise versions 17.06.xx > only. {:.warning} {% endcapture %} {{ selinux-warning }} ### Set up the repository You only need to set up the repository once, after which you can install Docker Engine - Enterprise _from_ the repo and repeatedly upgrade as necessary.