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

Sequence implementation method based on MySQL

The team replaced the new frame. All new business...

How to check and organize website files using Dreamweaver8

What is the purpose of creating your own website u...

js uses cookies to remember user page operations

Preface During the development process, we someti...

JS achieves five-star praise case

This article shares the specific code of JS to ac...

Detailed explanation of MySQL Workbench usage tutorial

Table of contents (I) Using Workbench to operate ...

How to use wangEditor in vue and how to get focus by echoing data

Rich text editors are often used when doing backg...

MySQL multi-table query detailed explanation

Time always passes surprisingly fast without us n...

How to make a tar file of wsl through Docker

I've been playing with the remote development...

Brief analysis of MySQL union and union all

In the database, both UNION and UNION ALL keyword...

Summary of pitfalls of using nginx as a reverse proxy for grpc

background As we all know, nginx is a high-perfor...