'How to free up space used by docker containers without docker restart? [closed]
I have a project with docker containers that make a huge logs at /var/lib/docker/containers when /var/lib/docker/containers/containerid.json.log is deleted, the space still not free.
for some reasons docker-deamon should not be restarted.
if docker-daemon restart or if server rebooted the problem will be solved but I can't do it and the container should be online every time.
what should I do?
Solution 1:[1]
For a oneshot cleanup you should use:
sudo truncate -s 0 /var/lib/docker/containers/containerid.json.log
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Antonio Petricca |
