Skip to content

Commit bb302c0

Browse files
yuhuyoyoYu Hu
andauthored
set log max size and file (#173)
Co-authored-by: Yu Hu <[email protected]>
1 parent f217768 commit bb302c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

startupscript/butane/006-start-proxy-agent.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ readonly OPTIONS
4646
docker start "proxy-agent" 2>/dev/null \
4747
|| docker run \
4848
--detach \
49+
--log-opt max-size=10m \
50+
--log-opt max-file=3 \
4951
--name "proxy-agent" \
5052
--restart=unless-stopped \
5153
--net=host "${PROXY_IMAGE}" \

0 commit comments

Comments
 (0)