This document describes how to install docker on a centos 7 64-bit host.

Update domestic sources

A little.

The installation

Installation system tools:

yum install -y yum-utils device-mapper-persistent-data lvm2
Copy the code

Add domestic source (Aliyun) :

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Copy the code

Build cache:

yum makecache 
Copy the code

Installation:

yum install docker
Copy the code

View version:

Docker -v Docker version 1.13.1, build b2F74B2/1.13.1Copy the code

Start docker service (not enabled by default) :

systemctl start docker
Copy the code

Note that because centos is enabled, the docker version installed is older, but it works fine. The configuration method of accelerator is the same as the previous article, omitted here.