centos7.2 Install/Uninstall Docker latest version process

Source: Internet
Author: User
Tags docker run
one. Docker installation update Yum yum update
The Docker.repo file is created because the default yum download Docker is not the latest version. It is not recommended to use DOCKER6 for installation, upgrade Docker, reference on DOCKER6: Docker upgrades on centos6.8. Vim/etc/yum.repos.d/docker.repo
The file itself does not exist, create and then add the following: Name=docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/enabled=1 Gpgcheck=1 GPGKEY=HTTPS://YUM.DOCKERPROJECT.ORG/GPG
Then install the Docker-engine installation Docker engine, which can also be used as an update to the Docker version: First #systemctl stop Docker stops Docker service, then #yum install Update the Docker version. Yum Install Docker-engine-y
Start Docker let Docker start with boot: Systemctl enable Docker.service
Start the Docker daemon: Systemctl start Docker
View Docker run Docker info



The above is installed: two. Docker uninstall query installed packages Yum List installed | grep Docker
Remove installed packages separately yum-y Remove * * * *
Delete containers and mirrors, etc. rm-rf/var/lib/docker

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.