gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 18:20:10 26 4
gpt4 key购买 nike

相当简单的问题,但我似乎无法在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…"

最佳答案

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

关于docker - Docker-在何处查看完整日志以了解服务规模,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55042637/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com