Solution to the problem that Centos8 cannot install docker

Solution to the problem that Centos8 cannot install docker

Problem

[root@zh ~]# 
[root@zh ~]# 
[root@zh ~]# yum -y install docker
Last metadata expiration check: 0:08:25 ago, performed on Wednesday, August 05, 2020 at 20:28:10.
No matching arguments found: docker
Error: No matches found for: docker
[root@zh ~]# 

Solution

First, test whether you can ping the external network:

[root@zh ~]# 
[root@zh ~]# 
[root@zh ~]# 
[root@zh ~]# ping www.baodu.com
PING www.baodu.com (115.29.223.128) 56(84) bytes of data.
64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=1 ttl=55 time=23.7 ms
64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=2 ttl=55 time=23.6 ms
64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=3 ttl=55 time=23.7 ms
64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=4 ttl=55 time=23.6 ms
^C
--- www.baodu.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 8ms
rtt min/avg/max/mdev = 23.637/23.660/23.700/0.024 ms
[root@zh ~]# 

Yes, you can.

Installation source:

yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

Retest:

Yes, you can.

Attachment: Steps to install docker on centos8

1. Download the docker-ce repo

curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo

2. Install dependencies (this is a key step compared to centos7)

yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

3. Install docker-ce

yum install docker-ce -y

4. Start Docker

systemctl start docker

Summarize

This is the end of this article about how to solve the problem of Centos8 being unable to install docker. For more related content about Centos8 being unable to install docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • About the problem of offline installation of Docker package on CentOS 8.4
  • Detailed steps to install Docker 1.8 on CentOS 7
  • The most detailed method to install docker on CentOS 8

<<:  CSS list sliding to prevent being covered by the bottom and adapt to the longer screen model processing

>>:  A brief discussion on the execution details of Mysql multi-table join query

Recommend

Zookeeper stand-alone environment and cluster environment construction

1. Single machine environment construction# 1.1 D...

React encapsulates the global bullet box method

This article example shares the specific code of ...

JS uses clip-path to implement dynamic area clipping function

background Today, I was browsing CodePen and saw ...

HTML drag and drop function implementation code

Based on Vue The core idea of ​​this function is ...

Summary of tips for making web pages

Preface This article mainly summarizes some of th...

el-table in vue realizes automatic ceiling effect (supports fixed)

Table of contents Preface Implementation ideas Ef...

Sample code for implementing follow ads with JavaScript

Floating ads are a very common form of advertisin...

What are the usages of limit in MySQL (recommended)

SELECT * FROM table name limit m,n; SELECT * FROM...

HTML+CSS to achieve cyberpunk style button

First look at the effect: Preface: I came up with...

How to use Greek letters in HTML pages

Greek letters are a very commonly used series of ...

CSS perfectly solves the problem of front-end image deformation

I saw an article in Toutiao IT School that CSS pe...

Share CSS writing standards and order [recommended for everyone to use]

CSS writing order 1. Position attributes (positio...

Mysql Workbench query mysql database method

Mysql Workbench is an open source database client...

VMware, nmap, burpsuite installation tutorial

Table of contents VMware BurpSuite 1. Virtual mac...