git - 显示 docker build 的日志
问题描述
我有一个要在 WSL 上构建的 Dockerfile。 docker build -t name .
导致错误消息,例如ERROR: Command errored out with exit status 128: ..
Check the logs for full command output.
为了检查日志,我找到了用于构建我的 Dockerfile 的容器的名称。然而,docker logs NAME
返回Error response from daemon: configured logging driver does not support reading
。我发现docker inspect NAME
有"HostConfig": {"LogConfig": {"Type": "none"}}, "LogPath": ""
条目。如何解决这个问题并获取我的日志? docker info
输出Logging Driver: json-file
,这是可取的。
解决方案
推荐阅读
- reactjs - 保存状态中的对象数组并将其传递给返回以在网页上显示它以做出反应
- jquery - Twig - 2 个输入字段 - 第二个输入字段应根据第一个输入而改变
- java - util.date 构造函数返回 null
- javascript - 如何使用javascript检查ul标签是否为空?
- vert.x - vert.x JdbcClient 在使用事件总线时不工作
- javascript - 强制点击处理程序识别多个元素
- java - 通过消息 Java 关闭多线程套接字服务器
- android - 线性布局gravity="bottom"时滚动不起作用怎么办?
- git - nfs 共享上的 git clone 不起作用(权限被拒绝)
- java - 警告:发现私有方法是假的;此类假货将不再受支持