This article demonstrates how to install Docker EE on CentOS7.
There are two ways to install and upgrade Docker Enterprise Edition (Docker EE) on Centos:
Things to consider before installing Docker EE.
To install Docker EE, you need to subscribe to the URL of the associated Docker EE repository:
https://store.docker.com/my-content
. All subscriptions and trial versions are listed here.Docker Enterprise Edition for Centos
.You will use in a later step<DOCKER-EE-URL>
To indicate the content of this URL.
The old version of docker, docker-engine or docker ce can be deleted by the following command
$ 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 \
docker-ce
$ rm /etc/yum.repos.d/docker*.repo
with the actual URL string in the following command<DOCKER-EE-URL>
:$ export DOCKERURL=<DOCKER-EE-URL>
$ echo "$DOCKERURL/centos">/etc/yum/vars/dockerurl
$ yum install -y yum-utils device-mapper-persistent-data lvm2
$ yum-config-manager --add-repo "$DOCKERURL/centos/docker-ee.repo"
There are currently two versions of Docker EE Engine available:
$ yum -y install docker-ee
List available versions (example):
$ yum list docker-ee --showduplicates | sort -r
docker-ee.x86_64 17.06.2-ee.8-3.el7.centos docker-ee-stable-17.06
Install the specified version of Docker EE:
$ yum -y install <FULLY-QUALIFIED-PACKAGE-NAME> #For example docker-ee-17.06.2-ee.8-3
$ systemctl enable docker.service && systemctl start docker.service
To install Docker EE manually, you need to download the .rpm file. Every time you want to upgrade Docker EE, you need to download a new file.
storebits.docker.com/ee/centos/sub-2lde9232-11e4-4e00-982e-414f417ef7c6
storebits.docker.com/ee/centos/<Token>/centos/7/x86\_64/stable-17.06/Packages/
$ yum install /path/to/package.rpm
$ systemctl enable docker.service && systemctl start docker.service
$ yum -y remove docker-ee
$ rm -rf /var/lib/docker
Recommended Posts