When installing Docker on an Alibaba Cloud server running CentOS 8, a repository not found error occurred, as shown below:

Solution
Approach: Install Docker using the Docker repository.
Set Up the Repository
Install the required packages. Here, yum-utils is installed; yum-utils provides yum-config-manager, while the device mapper storage driver requires device-mapper-persistent-data and lvm2.
| |
Configure the Alibaba Cloud Mirror in China
| |
Install docker-ce
| |
P.S. If the installation fails, click here.