# Container log eats up all the disk space and hang

**URL:** <https://forums.suse.com/t/container-log-eats-up-all-the-disk-space-and-hang/3252>\
**Category:** Rancher 1.x\
**Created:** [June 29, 2016, 11:25pm UTC](https://forums.suse.com/t/container-log-eats-up-all-the-disk-space-and-hang/3252 "2016-06-29T23:25:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![balzaczyy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/balzaczyy/32/1370_2.png) [@balzaczyy](https://forums.suse.com/u/balzaczyy)\
**Post date:** [June 29, 2016, 11:25pm UTC](https://forums.suse.com/t/container-log-eats-up-all-the-disk-space-and-hang/3252/1 "2016-06-29T23:25:53Z")

</div>

Recently one of my elasticsearch cluster (firstly a client, then a data node) died because of no disk space. There is no warning, no auto evaculation. I understand it could be limitation for docker. My question is, how can I easily enable log rotate in rancher way? And how can I get notified if my node doesn’t work?

---

<div class="post-metadata">

**Author:** ![balzaczyy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/balzaczyy/32/1370_2.png) [@balzaczyy](https://forums.suse.com/u/balzaczyy)\
**Post date:** [June 30, 2016, 12:01am UTC](https://forums.suse.com/t/container-log-eats-up-all-the-disk-space-and-hang/3252/2 "2016-06-30T00:01:32Z")

</div>

My solution is to add “–log-opt max-size=50m” to DOCKER\_OPTS in /etc/init.d/docker

Will keep monitoring if issue is resolved.\

BTW, I’m using 1.1.0-dev5 build.
