Detailed methods for installing Docker 1.12.3 version under CentOS 7.2 _docker

Source: Internet
Author: User
Tags gpg centos

Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable container, and then publish it to any popular Linux machine or virtualization. Containers are completely using the sandbox mechanism, and there will be no interface between each other.

1. Strong official documents

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

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

Yum install-y wget
cd/etc/yum.repos.d
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
Bin/yum Clean all
/usr/bin/yum Makecache

Other systems with their own source can be retained, or all can be killed

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 generation of Docker Yum source files

Tee/etc/yum.repos.d/docker.repo <<-' EOF '
[Dockerrepo]
name=docker Repository
baseurl=https:// yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https:// YUM.DOCKERPROJECT.ORG/GPG
EOF

6. Installation Docker

Yum Install Docker-engine

7. If you encounter a problem: Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm are not installed, execute the following command

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

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

9, after installation, set the boot up

Systemctl Enable Docker.service

10, start the Docker daemon process

Systemctl Start Docker

11, view Docker version

[Root@localhost ~]# Docker version

Client:

version:1.12.3
API version:1.24
Go version:go1.6.3
Git COMMIT:6B644EC

Built:

Os/arch:linux/amd64

Server:

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!

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.