BeforeTooLate
V2EX  ›  Docker

请问下现代的 docker 版本,是无法再使用 centos6.8 这类容器了么?

  •  
  •   BeforeTooLate · Dec 8, 2025 · 3478 views
    This topic created in 333 days ago, the information mentioned may be changed or developed.

    已经 docker pull 下官方的 centos6.8 镜像,
    但是当我执行 >docker run -it --name centos68_test centos:6.8 /bin/bash
    发现进不去容器里面,查了下说现代的 docker 都不支持了,建议我用 centos7 版本以上容器镜像,但是我如果只想复刻代码屎山原先环境怎么办,降 docker 版本?

    Supplement 1  ·  Dec 8, 2025

    我看了下日志:应该是宿主内核(我是debian12.12)禁用了 vsyscall(或设置为 none),而 CentOS 6.x 容器里的老旧 glibc/bash 会尝试使用 vsyscall 页面,导致 segfault(Exit 139) 解决方案:添加 vsyscall=emulate 到 /etc/default/grub 即可

    5 replies  •  2025-12-09 12:15:01 +08:00
    SuperGeorge
    SuperGeorge
    Dec 8, 2025
    1
    不影响,我们 Ubuntu12.04 的都还在跑,另外你这描述里没有什么有效信息,无法判断。
    BeforeTooLate
    BeforeTooLate
    OP
    Dec 8, 2025
    2
    @SuperGeorge 那你的 docker 版本是什么?
    我的现在的情况是:官方先 docker pull 下 centos:6.8 后,我连 docke run 这个容器都没法起来,都是提示错误:Exited (139) 21 seconds ago 。
    whitewash
    whitewash
    Dec 8, 2025❤️1
    3
    能用,
    BeforeTooLate
    BeforeTooLate
    OP
    Dec 8, 2025
    4
    @whitewash 你好请问下您的宿主机 linux 内核是多少?
    julyclyde
    julyclyde
    Dec 9, 2025
    5
    赞 OP 检查问题的能力
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:45 · PVG 14:45 · LAX 22:45 · JFK 01:45
    ♥ Do have faith in what you're doing.