首页 > 解决方案 > Docker - 在哪里查看服务规模的完整日志

问题描述

相当简单的问题,但我似乎无法谷歌它。基本上我正在运行以下命令,并且正在裁剪输出:

$ docker service scale omni_platform_omni_gallery_db=1
omni_platform_omni_gallery_db scaled to 1
overall progress: 0 out of 1 tasks 
1/1: invalid mount config for type "bind": bind source path does not exist: /ho… 

我需要查看完整的输出,但我似乎找不到 /var/log/docker.log 或任何类似的东西。

任何帮助表示感谢:)

编辑:

我也尝试了以下方法,但无济于事:

$ docker service ps omni_platform_omni_gallery_db --format {{.Error}}
"invalid mount config for type…"
"invalid mount config for type…"
"invalid mount config for type…"
"invalid mount config for type…"
"invalid mount config for type…"

标签: docker

解决方案


好的,所以我一直在使用该ps命令的正确轨道。它还有一个--no-trunc选项,因此正确的语法如下:

$ docker service ps omni_platform_omni_gallery_db --format {{.Error}} --no-trunc
"invalid mount config for type "bind": bind source path does not exist: /home/data"
"invalid mount config for type "bind": bind source path does not exist: /home/data"
"invalid mount config for type "bind": bind source path does not exist: /home/data"
"invalid mount config for type "bind": bind source path does not exist: /home/data"
"invalid mount config for type "bind": bind source path does not exist: /home/data"

推荐阅读