Installing a Docker personal virtual machine under Linux

Source: Internet
Author: User

First, prepare an ISO file system, then load it with a virtual machine, and if you can't go to https://www.centos.org/download/

Guaranteed 64 for System kernel 3.0 or above

Many ways on the internet have not been possible, but this is the author of the pro-test feasible

First step: Check the kernel: uname-r

Yum update is possible if the kernel is not supported

Step two: Remove the old version and legacy files


$ sudo yum remove docker 
 docker-client                   
docker-client-latest                   
docker-common                   
docker-latest                   
docker-latest-logrotate                   
docker-logrotate                   
docker-selinux                   
docker-engine-selinux                   
docker-engine


Step Three: Install the required system Tools

-y yum-utils device-mapper-Persistent-data lvm2     

Fourth step: Add software source information

sudo yum-config---Add-repo http://mirrors.aliyun.com/docker-ce /linux/centos/docker-ce.repo 

Fifth step: Update the Yum cache

sudo yum makecache fast  

Sixth Step: Install Docker-ce

-y Install docker-ce  

Seventh step: Start the Docker backend service (stop if the service is stopped)

sudo systemctl start Docker 

Eighth step: To prevent Docker from shutting down after rebooting, you can set this

sudo systemctl Enabel Docker

So the installation is complete.

Installing a Docker personal virtual machine under Linux

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.