首页 > 解决方案 > 通过 docker 容器上的自定义存储库安装软件包时出错

问题描述

我们在容器内的 yum.repos.d 中定义了一个自定义的 Jfrog 工件。但是目前当我尝试在我的容器中安装一个包时,我收到了这个错误

[root@localhost /]#docker exec -it 7f54b12c7dc1  bash
[root@7f54b12c7dc1 /]# yum install vim
centos_8.2-PowerTools                                                                        2.1 kB/s | 429  B     00:00
Errors during downloading metadata for repository 'centos_8.2-PowerTools':
  - Status code: 401 for https://www.artifactory.custom.mycompany.com/artifactory/cao-centos_8.2_dev_rpm_local/PowerTools_x86_64_os/repodata/repomd.xml (IP: 185.46.212.33)
Error: Failed to download metadata for repo 'centos8.2-PowerTools': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

任何帮助,将不胜感激

标签: linuxdockercontainersartifactoryjfrog

解决方案


推荐阅读