简体   繁体   English

Mac上的docker的调试选项是什么? 如何查看docker客户端的详细日志记录?

[英]What are debug options for docker on Mac doing? How do I see more verbose logging of docker client?

From the look of the doc, I was under the impression that 从文档的外观来看,我的印象是

docker -D -l debug --debug pull ...

will print verbose logging of some kind. 将打印某种详细的日志记录。 But that wasn't the case. 但是事实并非如此。 Neither was the setting in advance setting: 预先设置都不是: 在此处输入图片说明

Am I missing something? 我想念什么吗? docker info does confirm I am in debug mode, though it doesn't say anything about logging location. docker info确实确认我处于调试模式,尽管它没有说明日志记录位置。 Not sure if I am missing something here. 不知道我是否在这里缺少什么。

I'm on Mac 我在Mac上

➜  ~ docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:21:31 2018
 OS/Arch:           darwin/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:29:02 2018
  OS/Arch:          linux/amd64
  Experimental:     true

没关系,我发现源代码中几乎没有任何调试日志记录,对于这个拉取目标尤其如此: https : //github.com/docker/docker-ce/blob/master/components/cli/vendor/github.com /docker/docker/client/image_create.go

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM