Docker-在何处查看完整日志以了解服务规模

时间:2019-03-07 11:22:53

标签: docker

一个非常简单的问题,但我似乎无法在Google上找到。基本上,我正在运行以下命令,并且正在裁剪输出:

$ 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…"

1 个答案:

答案 0 :(得分:1)

好的,所以我使用该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"