信息发布→ 登录 注册 退出

如何查看docker进程退出的原因

发布时间:2020-04-15

点击量:

问题还原:

最近的docker容器经常被kill掉,k8s中该节点的pod也被驱赶。

解决方法:

使用以下命令查看被kill的所有进程

dmesg | grep -i -B100 'killed process'

查看到pod被驱赶的原因:

[3899860.525793] Out of memory: Kill process 64058 (nvidia-device-p) score 999 or sacrifice child
[3899860.526961] Killed process 64058 (nvidia-device-p) total-vm:126548kB, anon-rss:2080kB, file-rss:0kB, shmem-rss:0kB

查看到docker容器被kill 的原因:

[3899859.737598] Out of memory: Kill process 27562 (jupyter-noteboo) score 1000 or sacrifice child
[3899859.738640] Killed process 27562 (jupyter-noteboo) total-vm:215864kB, anon-rss:45928kB, file-rss:0kB, shmem-rss:0kB

查看内存使用情况

tilyp@tilyp:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:           251G         96G        114G        2.5M         41G        153G
Swap:            0B          0B          0B

推荐教程:docker教程

标签:# docker  # 解决方法  # score  # device  # sacrifice  # memory  # Kill  # nvidia  # public  # src  # oss  
在线客服
服务热线

服务热线

4008888355

微信咨询
二维码
返回顶部
×二维码

截屏,微信识别二维码

打开微信

微信号已复制,请打开微信添加咨询详情!