Docker 守护进程日志在哪里? [英] Where is the Docker daemon log?

查看:46
本文介绍了Docker 守护进程日志在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Docker 守护进程日志在哪里?奇怪的是无法通过 man、StackOverflow 或 Docker Docs 找到答案.注意我不是要求 docker 容器 STDOUT,而是用于通过守护进程/代理对客户端和容器之间的通信进行故障排除的守护进程日志.

Where is the Docker daemon log? Oddly cannot find an answer to this via man, StackOverflow or Docker Docs. Note I am not asking for the docker container STDOUT, but the daemon log for troubleshooting communications between the client and container via daemon / proxy.

推荐答案

这取决于您的操作系统.以下是几个位置,其中包含适用于少数操作系统的命令:

It depends on your OS. Here are the few locations, with commands for few Operating Systems:

  • Ubuntu(旧的使用 upstart ) - /var/log/upstart/docker.log
  • Ubuntu(新使用 systemd ) - sudo journalctl -fu docker.service
  • 亚马逊 Linux AMI - /var/log/docker
  • Boot2Docker - /var/log/docker.log
  • Debian GNU/Linux - /var/log/daemon.log
  • CentOS - <代码>/var/log/message |grep docker
  • CoreOS - journalctl -u docker.service
  • Fedora - journalctl -u docker.service
  • 红帽企业 Linux 服务器 - /var/log/messages |grep docker
  • OpenSuSE - journalctl -u docker.service
  • OSX - ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/d‌ ocker.log
  • Windows - Get-EventLog -LogName Application -Source Docker -After (Get-Date).AddMinutes(-5) |排序对象时间,如此处.

这篇关于Docker 守护进程日志在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆