keithszc
V2EX  ›  问与答

docker 容器一直处于 created,任何操作都无效

  •  
  •   keithszc · Mar 26, 2021 · 4464 views
    This topic created in 2054 days ago, the information mentioned may be changed or developed.
    问题应该和下面两个一样
    https://unix.stackexchange.com/questions/575436/docker-container-hangs-in-status-created
    https://stackoverflow.com/questions/49643645/cannot-remove-docker-container-with-status-created
    有没有什么办法,不重启 docker.service,不用 prune --force
    或者说,从哪里能分析观察一下,为什么容器会卡死在 created 状态?
    docker version 20.10.5
    10 replies  •  2021-03-27 23:53:45 +08:00
    dier
    dier
    Mar 26, 2021❤️1
    1
    docker logs -f 看看日志
    keithszc
    keithszc
    OP
    Mar 26, 2021
    2
    @dier 什么操作都不行的
    keithszc
    keithszc
    OP
    Mar 26, 2021
    3
    刚刚发现 docker run hello-world 也会直接卡死,大佬们有没有什么排查思路?
    宿主机上还有 13 个运行正常的容器
    dier
    dier
    Mar 26, 2021
    4
    看看 CPU 内存 硬盘读写使用率
    rockyou12
    rockyou12
    Mar 26, 2021
    5
    查下是不是文件描述符的问题?
    keithszc
    keithszc
    OP
    Mar 26, 2021
    6
    @rockyou12 请问怎么查看呢?我看了看发现这台服务器的文件描述符还挺大的
    cvl
    cvl
    Mar 26, 2021
    7
    docker stats
    rockyou12
    rockyou12
    Mar 26, 2021
    8
    @keithszc 搜一下 fd 泄露排查吧,一般卡死的情况,不是 cpu 、内存就是 fd 的多
    yinho
    yinho
    Mar 26, 2021
    9
    看看磁盘剩余空间
    Reficul
    Reficul
    Mar 27, 2021 via Android
    10
    看下 dockerd 的 log
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 08:03 · PVG 16:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.