Home  >  Article  >  Operation and Maintenance  >  What should I do if CentOS8 cannot install docker?

What should I do if CentOS8 cannot install docker?

angryTom
angryTomOriginal
2020-03-30 13:34:503890browse

What should I do if CentOS8 cannot install docker?

What should I do if CentOS8 cannot install docker?

CentOS8 cannot install docker because of a lack of dependencies. The solution is to install the dependencies first and then install docker. .

The specific installation steps are as follows:

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 compared to Key steps of 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

4. Start docker

systemctl start docker

At this point, docker is only installed successfully, other functions To be tested.

This article comes from the PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of What should I do if CentOS8 cannot install docker?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn