CentOS 7 deployment installation configuration Docker 17.06

CentOS 7 deployment installation configuration Docker 17.06


【Install Docker 17.06 on CentOS 7】1. Installation of Docker


Docker currently has two official versions, one is the enterprise version (docker -ee ) and the other is the community version (docker- ce ), we mainly use the community version here.

【Install Docker 17.06 on CentOS 7】1. Install Docker CE


The basic repository of CentOS 7 is with docker, but it is not the official version, and the version is relatively low. We recommend using the official yum source, which is also very convenient for future upgrades.
1wget -P /etc/yum.repos.d / https://download.docker.com/linux/centos/docker-ce.repo
1yum install docker- ce
In the production environment, we usually specify the version to install. If not specified, the latest version will be used to install. By using the following command, you can view the version of docker.
1yum list docker-ce.x86_ 64 -- showduplicates | sort -r
To install the specified version, use the following command.
1yum install docker - ce-
【Install Docker 17.06 on CentOS 7】2. Start Docker
1systemctl start docker

3. Quick installation using Alibaba Cloud image
1curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet |sh -


【Install Docker 17.06 on CentOS 7】2. Configure Docker Accelerator


If we don't use the accelerator, we will be very slow when pulling from the Docker server, so how to solve it?
First, "thanks" to the great wall and its kin.
Then, use Alibaba Cloud Accelerator or DaoCloud Accelerator (that is, proxy, mirror).
1. Alibaba Cloud Accelerator
Log in to https://dev.aliyun.com/search.html, click "Create My Container Image", and find "Docker Hub Mirror Site", as shown below:



7sudo tee /etc/docker/daemon.json << - ' EOF '
{
" registry -mirrors" : [ "https://78ssvya7.mirror.aliyuncs.com" ]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
2. DaoCloud accelerator _
Register a DaoCloud account (support WeChat login), then visit: https://www.daocloud.io/mirror#accelerator-doc

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://b149d2fd.m.daocloud.io



This article is transferred from the wzlinux 51CTO blog, the original link: http://blog.51cto.com/wzlinux/1958583 , if you need to reprint, please contact the original author yourself

Copyright statement: The content of this article is contributed by Alibaba Cloud's real-name registered users. The copyright belongs to the original author. The Alibaba Cloud developer community does not own the copyright and does not assume the corresponding legal responsibility. For specific rules, please refer to the " Alibaba Cloud Developer Community User Service Agreement " and " Alibaba Cloud Developer Community Intellectual Property Protection Guidelines ". If you find any content suspected of plagiarism in this community, fill out the infringement complaint form to report it. Once verified, this community will delete the allegedly infringing content immediately.

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00