Docker has announced following editions:
-Docker-ee (Enterprise Edition) along with Docker-ce(Community Edition) and Docker (Commercial Support)
This document will help you with installation steps of Docker-ee and Docker-ce edition in CentOS
Following are steps to install docker-ce edition
Install yum-utils, which provides yum-config-manager utility:
$ sudo yum install -y yum-utils
Use the following command to set up the stable repository:
$ sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
Optional: Enable the edge repository. This repository is included in the docker.repo file above but is disabled by default. You can enable it alongside the stable repository.
$ sudo yum-config-manager --enable docker-ce-edge
yum-config-manager
command with the --disable
flag. To re-enable it, use the --enable
flag. The following command disables the edge repository. $ sudo yum-config-manager --disable docker-ce-edge
Update the yum package index.
$ sudo yum makecache fast
Install the docker-ce using following command:
$ sudo yum install docker-ce-17.03.0.ce
Confirm the Docker-ce fingerprint
060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
If you want to install some other version of docker-ce you can use following command:
$ sudo yum install docker-ce-VERSION
Specify the VERSION
number
If everything went well the docker-ce is now installed in your system, use following command to start:
$ sudo systemctl start docker
Test your docker installation:
$ sudo docker run hello-world
you should get following message:
Hello from Docker! This message shows that your installation appears to be working correctly.
For Enterprise Edition (EE) it would be required to signup, to get your <DOCKER-EE-URL>.
To signup go to https://cloud.docker.com/. Enter your details and confirm your email id. After confirmation you would be given a <DOCKER-EE-URL>, which you can see in your dashboard after clicking on setup.
Remove any existing Docker repositories from /etc/yum.repos.d/
Store your Docker EE repository URL in a yum variable in /etc/yum/vars/
. Replace <DOCKER-EE-URL> with the URL you noted down in the first step.
$ sudo sh -c 'echo "<DOCKER-EE-URL>" > /etc/yum/vars/dockerurl'
Install yum-utils, which provides the yum-config-manager utility:
$ sudo yum install -y yum-utils
Use the following command to add the stable repository:
$ sudo yum-config-manager \ --add-repo \ <DOCKER-EE-URL>/docker-ee.repo
Update the yum package index.
$ sudo yum makecache fast
Install docker-ee
sudo yum install docker-ee
You can start the docker-ee using following command:
$ sudo systemctl start docker