As shown in the following figure: If the version is Centos 7.0 or above, it will be fine. uname -r The running results are as follows: Step 2: Clean up the installed docker (if you have not installed it, you can skip this step) The cleanup commands are as follows: 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 3: Install the Device Mapper tool The installation command is as follows: yum install -y yum-utils device-mapper-persistent-data lvm2 Step 4: Configure Docker's yum data source Configure the yum data source command as follows: yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo The configuration is successful as shown below: Step 5: Update the yum cache The command is as follows: yum makecache fast Step 6: Install docker-ce (community edition) The installation command is as follows: yum -y install docker-ce Step 7: Start Docker The startup command is as follows: systemctl start docker Startup systemctl enable docker.service Restart: systemctl restart docker Start the container and add --restart=always
If the project has been run, use update to update
After startup, you can use the following command to verify docker -v The results are as follows: This is the end of this article about how to install docker using YUM. For more information about installing docker with YUM, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Understand the difference between BR and P tags through examples
>>: CSS3 achieves various border effects
Overview: The filesystem module is a simple wrapp...
This article shares the installation and configur...
Let me share with you a creative opening realized...
What is serdel userdel is a low-level tool for de...
Written in front When we operate the database in ...
Table of contents Creating HTML Pages Implement t...
Table of contents First, configure package.json T...
In this blog, we will discuss ten performance set...
1. Download MySQL Log in to the MySQL official we...
Recently, I have implemented such an effect: clic...
Front-end project packaging Find .env.production ...
Table of contents Linux-Use MyCat to implement My...
Use indexes to speed up queries 1. Introduction I...
1. WebDesignerWall 2. Veerle's Blog 3. Tutori...
1. Achieve results 2. Data format returned by the...