Install Docker 1.12.3 and centosdocker in CentOS 7.2

Source: Internet
Author: User

Install Docker 1.12.3 and centosdocker in CentOS 7.2

From http://www.cnblogs.com/scoter2008

 

1. Powerful official documentation

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

2. Follow the steps to update the yum source first. Here the 163 source is used.

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 the source that comes with other systems can be retained or killed

3. Update the system

yum update

4. If any problem occurs: Delta RPMs disabled because/usr/bin/applydeltarpm not installed.

yum install -y deltarpm

5. Edit the yum source file of 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. Install Docker

yum install docker-engine

7. If any problem occurs:Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm is not installed, execute the following command

rpm --import https://yum.dockerproject.org/gpg

8. Docker download is slow. Please wait.

9. After the installation is complete, set the Automatic startup

systemctl enable docker.service

10. Start the docker daemon

systemctl start docker

11. Check the docker version.

[root@localhost ~]# 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!

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.