一个非常简单的问题,但我似乎无法在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…"
答案 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"