Installation
Install Docker on CentOS8
- Update packages:
sudo yum update
- Install
yum-utils
:
sudo yum install -y yum-utils
- Add
docker-ce
repository:
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
- Install
containerd.io
:
sudo yum install \
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
- Install
docker-ce
anddocker-ce-cli
:
sudo yum install docker-ce docker-ce-cli
Verify that the GPG key fingerprint matches
060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
Start Docker:
sudo systemctl start docker
References: