Install Docker on Centos7 (2020 latest version available, just copy and paste)

Install Docker on Centos7 (2020 latest version available, just copy and paste)

Refer to the official documentation here for operation:

https://docs.docker.com/engine/install/centos/

1. Uninstall the old version of docker (my centos7 is new, so no packages will be deleted after running)

yum remove docker \
     docker-client \
     docker-client-latest \
     docker-common \
     docker-latest \
     docker-latest-logrotate \
     docker-logrotate \
     docker-engine 

insert image description here

2. Install the yum-utils package

yum install -y yum-utils 

insert image description here

3. Set up the Docker repository (Alibaba Cloud address is used here)

yum-config-manager \
 --add-repo \
 http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 

insert image description here

4. Update the yum package index

yum makecache fast 

Bold style

5. Install the latest version of Docker

yum install docker-ce docker-ce-cli containerd.io

In the following step, select y

insert image description here

Then the following situation will appear: (The official website has given us a hint) Fingerprint matching select y

insert image description here

insert image description here

insert image description here

6. Start Docker

systemctl start docker

7. Check the docker version

docker version 

insert image description here

8. Test run

docker run hello-world 

insert image description here

The Hello from Docker message appears, indicating that the test is successful.

This is the end of this article about installing Docker on Centos7 (the latest 2020 test is available, just copy and paste). For more information about installing Docker on Centos7, 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:
  • Detailed steps to install Docker on CentOS7
  • How to install Docker on CentOS
  • Install Docker on CentOS 7
  • Detailed tutorial on installing Docker on CentOS 8
  • Detailed tutorial on installing Docker on CentOS 8.4
  • The most detailed method to install docker on CentOS 8
  • About the problem of offline installation of Docker package on CentOS 8.4
  • How to install Docker using scripts under Linux Centos
  • Detailed explanation of configuring Docker's yum source and installing it in CentOS7
  • Detailed tutorial on installing Docker on CentOS 7.5
  • Install a specific version of Docker for CentOS

<<:  CSS example code for setting scroll bar style

>>:  Vue sample code for online preview of office files

Recommend

Linux Domain Name Service DNS Configuration Method

What is DNS The full name of DNS is Domain Name S...

A brief analysis of JS original value and reference value issues

Primitive values ​​-> primitive types Number S...

Pure CSS3 to create page switching effect example code

The one I wrote before is too complicated, let’s ...

MySQL 5.7.21 installation and configuration method graphic tutorial (window)

Install mysql5.7.21 in the window environment. Th...

MySQL advanced learning index advantages and disadvantages and rules of use

1. Advantages and Disadvantages of Indexes Advant...

5 Commands to Use the Calculator in Linux Command Line

Hello everyone, I am Liang Xu. When using Linux, ...

Detailed steps for installing Harbor, a private Docker repository

The installation of Harbor is pretty simple, but ...

Detailed explanation of the principle of js Proxy

Table of contents What is Proxy Mode? Introducing...

Classes in TypeScript

Table of contents 1. Overview 2. Define a simple ...

A brief talk about JavaScript variable promotion

Table of contents Preface 1. What variables are p...

How to deploy Angular project using Docker

There are two ways to deploy Angular projects wit...

Introduction to the use of MySQL pt-slave-restart tool

Table of contents When setting up a MySQL master-...