The most detailed method to install docker on CentOS 8

The most detailed method to install docker on CentOS 8

Install Docker on CentOS 8

Official documentation: https://docs.docker.com/engine/install/centos/
1. System environment

cat /etc/redhat-release

insert image description here

2. Add a mirror source (here is Alibaba's mirror source)

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

insert image description here

3. Install dependencies

yum -y install yum-utils device-mapper-persistent-data lvm2

4. Install docker-ce

dnf -y install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
dnf -y install docker-ce docker-ce-cli --nobest

5. Check the docker version

docker --version

insert image description here

Finally, the docker version is displayed normally, which means the installation is successful

This is the end of this article about installing docker on CentOS 8. For more information about installing docker on CentOS 8, 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
  • About the problem of offline installation of Docker package on CentOS 8.4
  • Install Docker on Centos7 (2020 latest version available, just copy and paste)
  • 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

<<:  Vue Basics Listener Detailed Explanation

>>:  Solution to mysql error when modifying sql_mode

Recommend

CSS sets Overflow to hide the scroll bar while allowing scrolling

CSS sets Overflow to hide the scroll bar while al...

How to deploy Tencent Cloud Server from scratch

Since this is my first post, if there are any mis...

A detailed guide to custom directives in Vue

Table of contents 1. What is a custom instruction...

How to mount a data disk on Tencent Cloud Server Centos

First, check whether the hard disk device has a d...

MySql inserts data successfully but reports [Err] 1055 error solution

1. Question: I have been doing insert operations ...

MySQL enables slow query (introduction to using EXPLAIN SQL statement)

Today, database operations are increasingly becom...

Summary of several principles that should be followed in HTML page output

1. DOCTYPE is indispensable. The browser determin...

JavaScript form validation example

HTML forms are commonly used to collect user info...

Solution to win10 without Hyper-V

Are you still looking for a way to enable Hyper-v...

Three ways to configure Nginx virtual hosts (based on domain names)

Nginx supports three ways to configure virtual ho...

How to quickly install RabbitMQ in Docker

1. Get the image #Specify the version that includ...

Why do we need Map when we already have Object in JavaScript?

Table of contents 1. Don’t treat objects as Maps ...

VMware vsphere 6.5 installation tutorial (picture and text)

vmware vsphere 6.5 is the classic version of vsph...