You can install CS Docker Engine using a repository or using packages.

If you use a repository, your operating system
will notify you when updates are available and you can upgrade or downgrade
easily, but you need an internet connection. This approach is recommended.

If you use packages, you can install CS Docker
Engine on air-gapped systems that have no internet connection. However, you
are responsible for manually checking for updates and managing upgrades.

Prerequisites

To install CS Docker Engine, you need root or sudo privileges and you need
access to a command line on the system.

Install using a repository

Install on CentOS 7.1/7.2 & RHEL 7.0/7.1/7.2/7.3 (YUM-based systems)

This section explains how to install on CentOS 7.1/7.2 & RHEL 7.0/7.1/7.2/7.3. Only
these versions are supported. CentOS 7.0 is not supported. On RHEL,
depending on your current level of updates, you may need to reboot your server
to update its RHEL kernel.

This adds the repository of the latest version of CS Docker Engine. You can
customize the URL to install an older version.

Install Docker CS Engine:

Latest version:

$ sudo yum makecache fast
$ sudo yum install docker-engine

Specific version:

On production systems, you should install a specific version rather than
relying on the latest.

List the available versions:

$ yum list docker-engine.x86_64 --showduplicates |sort -r

The second column represents the version.

Install a specific version by adding the version after docker-engine,
separated by a hyphen (-):

$ sudo yum install docker-engine-<version>

Configure devicemapper:

By default, the devicemapper graph driver does not come pre-configured in
a production-ready state. Follow the documented step by step instructions to
configure devicemapper with direct-lvm for production
to achieve the best performance and reliability for your environment.

Configure the Docker daemon to start automatically when the system starts,
and start it now.

Install using packages

If you need to install Docker on an air-gapped system with no access to the
internet, use the package download link table to
download the Docker package for your operating system, then install it using the
appropriate command. You are responsible for manually
upgrading Docker when a new version is available, and also for satisfying
Docker’s dependencies.