Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker中nacos日志文件导致磁盘写满 #8686

Closed
QiaoGen opened this issue Jul 5, 2022 · 2 comments
Closed

docker中nacos日志文件导致磁盘写满 #8686

QiaoGen opened this issue Jul 5, 2022 · 2 comments

Comments

@QiaoGen
Copy link

QiaoGen commented Jul 5, 2022

运行环境
Linux debian 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
Docker version 20.10.17, build 100c701
nacos/nacos-server:2.0.4-slim

刚启动nacos 磁盘占用
image
运行一会后
image

目前只有这一个镜像非手动打包的, 占用一直增加,未找到解决办法

@KomachiSion
Copy link
Collaborator

  1. 哪个日志占用大?
  2. nacos可以使用了logback的日志框架, 可以自行修改日志最大大小。

@QiaoGen
Copy link
Author

QiaoGen commented Jul 15, 2022

启动容器使用--storage-opt size=300m便于快速发现问题
启动命令 docker run --storage-opt size=300m --name nacos -e MODE=standalone -d --net iplink-net --restart=always nacos/nacos-server:2.0.4-slim
单独分配片区域跑这个容器,查看日志正常,无法排查出什么原因该容器将磁盘跑满,无法启动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants