V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
KasuganoSoras
V2EX  ›  程序员

请教一个关于 Docker 的问题

  •  
  •   KasuganoSoras ·
    kasuganosoras · Aug 8, 2019 · 2210 views
    This topic created in 2454 days ago, the information mentioned may be changed or developed.

    我装了一个翼龙面板,它是基于 Docker 的一个游戏管理面板。

    装好了以后,我创建了一个服务器尝试运行(也就是它执行 docker run 的时候),出现了一个从没见过的错误:

        Error: (HTTP code 500) server error - OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"process_linux.go:396: setting cgroup config for procHooks process caused \\\"failed to write 1 to memory.oom_control: write /sys/fs/cgroup/memory/docker/5bf33f851f0628cdb2a087b3c3e9b7f0442281c12a95a532abbb1f797efd9c38/memory.oom_control: invalid argument\\\"\"": unknown 
            at /data/daemon/node_modules/docker-modem/lib/modem.js:254:17
            at getCause (/data/daemon/node_modules/docker-modem/lib/modem.js:284:7)
            at Modem.buildPayload (/data/daemon/node_modules/docker-modem/lib/modem.js:253:5)
            at IncomingMessage.<anonymous> (/data/daemon/node_modules/docker-modem/lib/modem.js:229:14)
            at emitNone (events.js:111:20)
            at IncomingMessage.emit (events.js:208:7)
            at endReadableNT (_stream_readable.js:1064:12)
            at _combinedTickCallback (internal/process/next_tick.js:139:11)
            at process._tickDomainCallback (internal/process/next_tick.js:219:9)
    

    注意这里:

    failed to write 1 to memory.oom_control: write /sys/fs/cgroup/memory/docker/...此处省略.../memory.oom_control: invalid argument
    

    查了下 invalid argument 好像是文件系统的问题,但是没有找到跟 Docker 有关的结果。

    然后我还试了下重装 Docker,没有用;禁用了 OOM Killer,也没有用。

    有大佬知道这是什么问题吗?谷歌找了很久都没有结果,快疯了

    4 replies    2019-08-09 00:28:13 +08:00
    BlackHole1
        1
    BlackHole1  
    PRO
       Aug 8, 2019 via Android
    估计和系统有关,方便贴下 Dockerfile 么,或者把 Dockerfile 里的 image 换成 ubuntu 啥的
    Yourshell
        2
    Yourshell  
       Aug 8, 2019
    区 github 发 issue 不是更好吗
    momocraft
        3
    momocraft  
       Aug 8, 2019
    你可以不從面板啓動 docker 嗎

    不是每個服務器都能用 docker
    KasuganoSoras
        4
    KasuganoSoras  
    OP
       Aug 9, 2019
    @BlackHole1 #1
    @Yourshell #2
    @momocraft #3

    感谢回复,我重装了一下 Docker,然后重启了服务器就好了,不知道为什么会这样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5600 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 07:08 · PVG 15:08 · LAX 00:08 · JFK 03:08
    ♥ Do have faith in what you're doing.