ling516
V2EX  ›  Docker

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

  •  
  •   ling516 · Dec 30, 2021 · 2489 views
    This topic created in 1770 days ago, the information mentioned may be changed or developed.

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

    12 replies  •  2021-12-30 10:18:46 +08:00
    Privileges
    Privileges
    Dec 30, 2021 via Android
    1
    有 apt-get 命令怎么可能执行不了 update 。。很难想象
    seanzxx
    seanzxx
    Dec 30, 2021
    2
    有什么错误信息吗?
    clf
    clf
    Dec 30, 2021
    3
    一般我是直接下二进制包复制到容器里配置环境变量的。

    具体问题的排查,建议你把 docker 的基础镜像发一下?
    mason961125
    mason961125
    Dec 30, 2021 via Android
    4
    ?为什么不自己打包镜像?
    ling516
    ling516
    OP
    Dec 30, 2021
    5
    ling516
    ling516
    OP
    Dec 30, 2021
    6
    @mason961125 就是自己打包呀 打包过程中错误
    ling516
    ling516
    OP
    Dec 30, 2021
    7
    @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
    ling516
    OP
    Dec 30, 2021
    8
    @Privileges 解决了 换了国内源
    ling516
    ling516
    OP
    Dec 30, 2021
    9
    @seanzxx 解决了 换了国内源
    ling516
    ling516
    OP
    Dec 30, 2021
    10
    @clf 解决了 换了国内源
    ling516
    ling516
    OP
    Dec 30, 2021
    11
    @mason961125 解决了 换了国内源
    killva4624
    killva4624
    Dec 30, 2021
    12
    看到标题和内容我是有点懵的,建议楼主先去详细了解 yum 和 apt-get 的本质区别……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1957 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:48 · PVG 00:48 · LAX 08:48 · JFK 11:48
    ♥ Do have faith in what you're doing.