当前位置: 首页 > news >正文

查看 Docker 守护进程日志

        在使用systemetl 的Linux 系统上执行 joumalctl -u docker.service 命令,查看 Docker守护进程日志,如下所示

[root@host1 ~]# journalctl -u docker.service
9月 16 16:13:10 host1 systemd[1]: Starting Docker Application Container Engine...
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.438984412+08:00" level=info msg="Star>
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.443836870+08:00" level=info msg="OTEL>
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.445323862+08:00" level=info msg="CDI >
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.445357474+08:00" level=info msg="CDI >
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.536001650+08:00" level=info msg="Crea>
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.555218388+08:00" level=info msg="[gra>
9月 16 16:13:10 host1 dockerd[1415]: time="2025-09-16T16:13:10.661284285+08:00" level=info msg="Load>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.308171554+08:00" level=info msg="Remo>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.368618191+08:00" level=warning msg="F>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.368709897+08:00" level=warning msg="E>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.589784500+08:00" level=warning msg="E>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.630098450+08:00" level=warning msg="e>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.630141878+08:00" level=warning msg="e>
9月 16 16:13:11 host1 dockerd[1415]: time="2025-09-16T16:13:11.630158159+08:00" level=warning msg="e>
9月 16 16:13:12 host1 dockerd[1415]: time="2025-09-16T16:13:12.304896801+08:00" level=info msg="Load>
9月 16 16:13:12 host1 dockerd[1415]: time="2025-09-16T16:13:12.353112501+08:00" level=info msg="Dock>
9月 16 16:13:12 host1 dockerd[1415]: time="2025-09-16T16:13:12.353425076+08:00" level=info msg="Init>
9月 16 16:13:12 host1 dockerd[1415]: time="2025-09-16T16:13:12.492296663+08:00" level=info msg="Comp>
9月 16 16:13:12 host1 dockerd[1415]: time="2025-09-16T16:13:12.501293236+08:00" level=info msg="Daem>
9月 16 16:13:12 host1 dockerd[1415]: time="2025-09-16T16:13:12.501403519+08:00" level=info msg="API >
9月 16 16:13:12 host1 systemd[1]: Started Docker Application Container Engine.
9月 16 16:17:32 host1 dockerd[1415]: time="2025-09-16T16:17:32.963061344+08:00" level=info msg="Conf>
9月 16 16:17:33 host1 06fe4942e079[1415]: Starting Redis Server
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:C 16 Sep 2025 08:17:33.773 # WARNING Memory overcommit m>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:C 16 Sep 2025 08:17:33.774 * oO0OoO0OoO0Oo Redis is star>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:C 16 Sep 2025 08:17:33.774 * Redis version=8.2.1, bits=6>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:C 16 Sep 2025 08:17:33.774 * Configuration loaded
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.774 * monotonic clock: POSIX cloc>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.779 * Running mode=standalone, po>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.785 * <bf> RedisBloom version 8.2>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.785 * <bf> Registering configurat>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.785 * <bf>         { bf-error-rat>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.785 * <bf>         { bf-initial-s>
9月 16 16:17:33 host1 06fe4942e079[1415]: 1:M 16 Sep 2025 08:17:33.785 * <bf>         { bf-expansion>
lines 1-35

        在其他操作系统上可以查看相应的日志文件,比如 Linux的日志文件为var/log/messages, Windows (WSL2)的日志文件为%LOCALAPPDATA%6Dockerlog vm dockerd log。如果 Docker守护进程没有响应,则可以通过向守护进程发送一个SIGUSRI信号强制将堆栈跟踪记入日志。Linux 主机上的命今如下

[root@host1 ~]# kill -SIGUSR1 $(pidof dockerd)

        这种做法会强制记录堆找眼踪,但不会停止守护进程。守护进程日志显示雄找眼踪或包含堆栈跟踪的文件的路径(如果它已记录到文件中)。守护进程在处理完SIGUSR1信号并将堆战眼踪转端到日志后继续运行。堆栈跟踪可用于确定守护进程内所有 Goroutine (Go中的协程)和线程的状态。


文章转载自:

http://DlaSxsTg.xhrws.cn
http://NfAgjME4.xhrws.cn
http://lRF9pt79.xhrws.cn
http://Sl0xVHb0.xhrws.cn
http://cJsDggve.xhrws.cn
http://8uG10TRe.xhrws.cn
http://fnS5yAYv.xhrws.cn
http://pEvSwLyI.xhrws.cn
http://FzfSB4C7.xhrws.cn
http://UQeubnGU.xhrws.cn
http://p5Oh4nLv.xhrws.cn
http://Iw6yI62c.xhrws.cn
http://nyxItigr.xhrws.cn
http://EIbBL3Ft.xhrws.cn
http://otyTg6Lj.xhrws.cn
http://98wtBIBu.xhrws.cn
http://yK95028I.xhrws.cn
http://8stLiLgf.xhrws.cn
http://sAkCP0PH.xhrws.cn
http://hR9BDVLn.xhrws.cn
http://CTOJFeiH.xhrws.cn
http://dg5jPyYX.xhrws.cn
http://XEHE0b8D.xhrws.cn
http://UkSvkrcO.xhrws.cn
http://xrgTPEwB.xhrws.cn
http://rHbCJD4q.xhrws.cn
http://Wgnbv5BQ.xhrws.cn
http://nya8Tb1u.xhrws.cn
http://42BuUvuv.xhrws.cn
http://6NWSZ8o4.xhrws.cn
http://www.dtcms.com/a/386256.html

相关文章:

  • 第11章 [特殊字符]️Hutool 常用工具类
  • 【MySQL|第十篇】总结篇——各种命令集合
  • npm : 无法加载文件 d:\nvm4w\nodejs\npm.ps1,
  • 贪心算法应用:活动选择问题详解
  • C++ 模板:以简御繁-5/5
  • AI大模型学习(6)Yolo V8神经网络的基础应用
  • 【完整源码+数据集+部署教程】残疾人和正常人识别图像分割系统: yolov8-seg-act
  • 深度学习:从概念到实践,开启智能时代新篇章
  • 构建AI智能体:三十五、决策树的核心机制(一):刨根问底鸢尾花分类中的参数推理计算
  • 美创科技入选 2025 年度省级场景型数字化服务商!
  • 《COD21》新赛季海量更新:《忍者神龟》联动上线!
  • RuoYi框架Excel静态模板下载例子Demo
  • 【系列文章】Linux系统中断的应用02-中断下文 tasklet
  • GPT-5-Codex 模型评测报告
  • MAZANOKE+cpolar让照片存储无上限
  • (笔记)Linux系统设置虚拟内存
  • Kotlin-基础语法练习三
  • windows上Redis Desktop Manager链接服务器docker内Redis方法
  • jMeter小记-数组数据X_id集合获取及循环控制器使用调用数组数据X_id
  • 迁移指南:从旧版 Electron 升级
  • Node.js中的 http 模块详解
  • 设置powershell每次打开自动启动anaconda中自设环境
  • keil5和arm编译器安装
  • 【初阶数据结构】顺序表
  • 外媒称Switch2手柄鼠标功能 将彻底改变玩游戏的方式
  • 【Spring Cloud】微服务
  • 设计模式(Java实现)----建造者模式
  • C++设计模式_创建型模式_建造者模式Builder
  • Dell PowerEdge R620 服务器内存和硬盘罢工了
  • 儿童无屏幕对讲机 Bunny 融资百万美元;腾讯会议推出 AI 托管:先行听会、代听多会、全程记录丨日报