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
Post a Comment