Docker-install Docker on CentOS

Source: Internet
Author: User

1. Preparation

Since dokcer requires 64bit OS, version number 3.10 or newer version. So, we need to identify our CentOS system first.

$ uname -r

output :: 3.10.0-229.el7.x86_64

2. Installing with Yum

2.1 Update Yum to the latest version

$ yum update

2.2 Add the yum repo

$ sudo 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

3. Installing Docker

$yum install docker-engine

4. Open the Docker service.

$ systemctl enable docker.service

5. Start Docker daemon

$ systemctl start docker

6. Set Daemon Default boot

$ systemctl enable docke

Docker-install Docker on CentOS

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.