CentOS 7.2 Installs Docker version 1.12.3

Source: Internet
Author: User

This article originates from http://www.cnblogs.com/scoter2008

1. Powerful official documents

https://docs.docker.com/engine/installation/linux/centos/

2, according to the steps, first update the Yum source, here with 163 of the source

Yum install-y wgetcd/etc/yum.repos.dwget Http://mirrors.163.com/.help/CentOS7-Base-163.repo/usr/bin/yum clean all/ Usr/bin/yum Makecache Other system comes with the source can be preserved, also can kill all

3. Update the System

Yum Update

4, if you encounter problems: Delta RPMs disabled because/usr/bin/applydeltarpm not installed.

Yum Install-y deltarpm

5. Edit the Yum source file that generated Docker

Tee/etc/yum.repos.d/docker.repo <<-' EOF ' [Dockerrepo]name=docker repositorybaseurl=https:// Yum.dockerproject.org/repo/main/centos/7/enabled=1gpgcheck=1gpgkey=https://yum.dockerproject.org/gpgeof

6. Installing Docker

Yum Install Docker-engine

7, if you encounter problems:Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm is not installed,执行下面的命令

RPM--import HTTPS://YUM.DOCKERPROJECT.ORG/GPG

8, Docker download speed is very slow, please wait patiently

9, after the installation is complete, set the start-up

Systemctl Enable Docker.service

10. Start the Docker daemon

Systemctl Start Docker

11. View the Docker version

[[email protected] ~]# Docker versionclient:version:      1.12.3 API Version:  1.24 Go version:   go1.6.3 Git Commit :   6b644ec Built:         os/arch:      linux/amd64server:version:      1.12.3 API version:  1.24 Go version:   go1.6.3 Git Commit:   6b644ec Built:         os/arch:      linux/amd64

12, Done,enjoy it!

CentOS 7.2 Installs Docker version 1.12.3

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.