docker - 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…"
解决方案
好的,所以我一直在使用该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"
推荐阅读
- gdb - C 调试器是否将所有进程内存初始化为 0?
- windows-10 - Windows 10 在重新启动时重新分配驱动器号。要更改的脚本?
- mysql - 如何执行多对多关系过滤查询
- java - Android,包装RecyclerView LayoutManager,RTL,Bottom-To-Top
- nginx - 在没有指定精确匹配位置的情况下缺少斜杠时如何防止 Nginx 中的 301 重定向?
- mysql - 找出表在一天内包含的最大记录数的最佳方法是什么?
- python - 在python中获取一个新的随机数
- python - 将 Google 身份验证与 Python 和 Dash 集成
- r - 为什么未来的包找不到我的功能?
- python - 权限被拒绝 (Errno 13) - wandb init - 在 docker 容器中