无法从docker-compose日志-f [容器名称]退出

时间:2019-02-13 23:22:53

标签: docker logging docker-compose exit

我可以通过输入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 + ccontrol + zq或任何正常的退出命令来退出。 日志继续

1 个答案:

答案 0 :(得分:0)

在我使用的 centos 机器上

docker-compose logs -f -t

查看日志和

control-C

从日志中逃脱。它出现:

<块引用>

q ^CERROR:正在中止。

相关问题