logging - Docker container logs taking all my disk space -


i running container on vm. container writing logs default /var/lib/docker/containers/container_id/container_id-json.log file until disk full.

currently, have delete manually file avoid disk full. read in docker 1.8 there parameter rotate logs. recommend current workaround?

docker 1.8 has been released log rotation option. adding:

--log-opt max-size=50m  

when container launched trick. can learn more at: https://docs.docker.com/engine/admin/logging/overview/


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -