feat: docker日志限制默认行数

This commit is contained in:
chaos-zhu
2026-04-26 20:29:59 +08:00
parent e9fb5ecf6c
commit 4f49e8a07e
2 changed files with 2 additions and 2 deletions

View File

@@ -2236,7 +2236,7 @@ const handleDockerComposeAction = (row, action) => {
command = `docker compose -f ${ fullPath } pull && docker compose -f ${ fullPath } down && docker compose -f ${ fullPath } up -d\n`
break
case 'logs':
command = `docker compose -f ${ fullPath } logs -f\n`
command = `docker compose -f ${ fullPath } logs --tail=500 -f\n`
break
default:
$message.error('未知操作')

View File

@@ -759,7 +759,7 @@ const handleRightClick = async (e) => {
onClick: () => {
if (!plusTips()) return
focusTab()
inputCommand(`docker logs -f ${ str }`)
inputCommand(`docker logs --tail=500 -f ${ str }`)
}
},
]