docker 容器里面没有 yum 运行脚本要安装两个包 怎么办

2021-12-30 00:19:41 +08:00
 ling516

容器可以用 apt-get,但是无法 update

1420 次点击
所在节点    Docker
12 条回复
Privileges
2021-12-30 00:59:21 +08:00
有 apt-get 命令怎么可能执行不了 update 。。很难想象
seanzxx
2021-12-30 01:00:30 +08:00
有什么错误信息吗?
clf
2021-12-30 01:15:05 +08:00
一般我是直接下二进制包复制到容器里配置环境变量的。

具体问题的排查,建议你把 docker 的基础镜像发一下?
mason961125
2021-12-30 01:36:33 +08:00
?为什么不自己打包镜像?
ling516
2021-12-30 04:31:35 +08:00
ling516
2021-12-30 04:33:02 +08:00
@mason961125 就是自己打包呀 打包过程中错误
ling516
2021-12-30 04:43:53 +08:00
@seanzxx
apt-get update 命令输出

W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could not connect to 192.168.101.1:80 (192.168.101.1). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
ling516
2021-12-30 05:56:43 +08:00
@Privileges 解决了 换了国内源
ling516
2021-12-30 05:56:47 +08:00
@seanzxx 解决了 换了国内源
ling516
2021-12-30 05:57:49 +08:00
@clf 解决了 换了国内源
ling516
2021-12-30 05:57:56 +08:00
@mason961125 解决了 换了国内源
killva4624
2021-12-30 10:18:46 +08:00
看到标题和内容我是有点懵的,建议楼主先去详细了解 yum 和 apt-get 的本质区别……

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/825183

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX