阿里云服务器执行yum,一直下载docker-ce-stable失败

~# yum update
Docker CE Stable - x86_64                               0.0  B/s |   0  B     02:00    
Errors during downloading metadata for repository 'docker-ce-stable':
  - Curl error (28): Timeout was reached for https://download.docker.com/linux/centos/8/x86_64/stable/repodata/repomd.xml [Connection timed out after 30000 milliseconds]
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

这可能是由于YUM配置文件中包含了Docker仓库的配置,或者您的yum源中包含了Docker的相关依赖。您可以尝试以下步骤解决问题:

1. 查看YUM配置: 查看 `/etc/yum.repos.d/` 目录下是否有与Docker相关的repo文件,如`docker.repo`或`docker-ce.repo`,并临时移除或注释掉相关配置。

本人通过查看`/etc/yum.repos.d/` 目录,发现有docker-ce.repo,打开

[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://downl

相关推荐

  1. 阿里服务器执行yum一直下载docker-ce-stable失败

    2024-06-19 10:18:05       12 阅读
  2. centos7更新yum安装docker-ce使用阿里

    2024-06-19 10:18:05       30 阅读
  3. 阿里服务 安装 Docker

    2024-06-19 10:18:05       21 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-19 10:18:05       10 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-19 10:18:05       11 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-19 10:18:05       10 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-19 10:18:05       13 阅读

热门阅读

  1. 【Python教程】压缩PDF文件大小

    2024-06-19 10:18:05       10 阅读
  2. 通过文章id递归查询所有评论(xml)

    2024-06-19 10:18:05       13 阅读
  3. 金融行业:银行的三大类业务

    2024-06-19 10:18:05       9 阅读
  4. Vim和Nano简介

    2024-06-19 10:18:05       8 阅读
  5. 产品经理基础入门

    2024-06-19 10:18:05       8 阅读
  6. C# 用RFC的方式调用SAP接口

    2024-06-19 10:18:05       8 阅读
  7. ngrok 进行安全的内网穿透:使用指南

    2024-06-19 10:18:05       10 阅读
  8. 【C语言】信号

    2024-06-19 10:18:05       6 阅读
  9. kotlin 注解 @Parcelize 使用

    2024-06-19 10:18:05       9 阅读