From d39b3f66d6d9c24e906ee5f289824a318320a121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 14 Apr 2025 19:02:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=B9=E5=99=A8=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=8F=AA=E5=8F=96=E6=9C=80=E6=96=B0100=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/data/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/data/container.go b/internal/data/container.go index aa156c18..24ef43f0 100644 --- a/internal/data/container.go +++ b/internal/data/container.go @@ -200,7 +200,7 @@ func (r *containerRepo) Rename(id string, newName string) error { // Logs 查看容器日志 func (r *containerRepo) Logs(id string) (string, error) { - return shell.ExecfWithTimeout(2*time.Minute, "docker logs %s", id) + return shell.ExecfWithTimeout(2*time.Minute, "docker logs --tail 100 %s", id) } // Prune 清理未使用的容器