linux - 通过 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
任何帮助,将不胜感激
解决方案
推荐阅读
- intellij-idea - Lambda 表达式不适用于 IntelliJ
- c# - 如何组织一个大型的 ASP.net 项目?
- javascript - JS 在 Firefox 中不起作用
- html - thymeleaf 上的条件运算符
- ruby-on-rails - 在本机反应中呈现 JSON 数据
- php - 选择喜欢但作为分隔符之间的整个字符串
- javascript - 在 puppeteer 中使用提示符
- amazon-web-services - 如何定义将接受任何给定值的 Lex 插槽类型(自定义/内置)?
- java - 如何使用 Java 代码创建 Kafka 分区
- db2 - DB2 select row isolation not working