Installing a Docker personal virtual machine under Linux

Source: Internet
Author: User

Tags: background files art Emctl file system make Mon Docker boot

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.

Tags Index: