The production environment is getting out of space and I just found out using this command that the logs are taking a ton of space:
> foo@bar:/var/lib/docker$ sudo sh -c "du -ch /var/lib/docker/containers/*/*-json.log" | grep total
80G total
My question now is how do I clear all of this logs? I'm not able to acess the /var/lib/docker/containers
via cd.
Also, is there any way to check how old these logs are? I would like to keep the logs from the last 30 days.