我可以通过输入override fun onDraw(canvas: Canvas) {
if (strokeWidth > 0) {
isDrawing = true
val textColor = textColors.defaultColor
setTextColor(strokeColor)
paint.strokeWidth = strokeWidth
paint.style = Paint.Style.STROKE
super.onDraw(canvas)
setTextColor(textColor)
paint.strokeWidth = 0f
paint.style = Paint.Style.FILL
isDrawing = false
super.onDraw(canvas)
} else {
super.onDraw(canvas)
}
}
(其中containerName是我要关注的Docker容器的名称)来成功跟踪容器的日志。
但是,一旦我遵循日志,就无法通过按docker-compose -f [containerName]
,control + c
,control + z
,q
或任何正常的退出命令来退出。
日志继续
答案 0 :(得分:0)
在我使用的 centos 机器上
docker-compose logs -f -t
查看日志和
control-C
从日志中逃脱。它出现:
<块引用>q ^CERROR:正在中止。