如果是使用 docker 的 json-file 日志存储的话, 可以在创建的时候指定文件大小
compose 的写法是:
logging:
driver: "json-file"
options:
max-size: "10M"
compose 的写法是:
logging:
driver: "json-file"
options:
max-size: "10M"
消息来源频道
@reorx_share
A chronicle of my journey in forging my ideas into writings and products. Archive: https://app.shokichan.com/c/tg/reorx_share