Install docker on centos7

Source: Internet
Author: User

1. Update yum

 
YumUpdate

2. Uninstall the built-in docker-related environment in the system.

 
YumRemove docker-common docker-SELinux docker-engine

3. Install the required software package. Yum-util provides the Yum-config-manager function,The other two are dependent on the devicemapper driver.

 
Yum Install-YYum-Utils device-mapper-persistent-data lvm2

4. Set the yum Source

Yum-Config-manager -- add-repo https://Download.docker.com/linux/centos/docker-ce.repo

5. You can view all docker versions in all repositories and select a specific version for installation.

 
YumList docker-ce -- showduplicates |Sort-R

6. Install docker

 
Yum InstallDocker-ce # because only the stable repository is enabled in the repo by default, the latest stable version 17 is installed here.12.0

7. Start and add to start

 
Systemctl start dockersystemctl enable docker

8. verify whether the installation is successful (either client or service indicates that the installation and startup of docker are successful)

 
Docker version

Blog on changing from wind to rain: https://www.cnblogs.com/yufeng218/p/8370670.html.

Install docker on centos7

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.