容器可以用 apt-get,但是无法 update
![]() | 1 Privileges 2021-12-30 00:59:21 +08:00 via Android 有 apt-get 命令怎么可能执行不了 update 。。很难想象 |
2 seanzxx 2021-12-30 01:00:30 +08:00 有什么错误信息吗? |
![]() | 3 clf 2021-12-30 01:15:05 +08:00 一般我是直接下二进制包复制到容器里配置环境变量的。 具体问题的排查,建议你把 docker 的基础镜像发一下? |
4 mason961125 2021-12-30 01:36:33 +08:00 via Android ?为什么不自己打包镜像? |
5 ling516 OP @clf 官方镜像 docker.io/python:3.6.7 |
6 ling516 OP @mason961125 就是自己打包呀 打包过程中错误 |
7 ling516 OP @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. |
8 ling516 OP @Privileges 解决了 换了国内源 |
11 ling516 OP @mason961125 解决了 换了国内源 |
![]() | 12 killva4624 2021-12-30 10:18:46 +08:00 看到标题和内容我是有点懵的,建议楼主先去详细了解 yum 和 apt-get 的本质区别…… |