Mar 2024
To truncate docker logs to clear up disk space use the truncate command.
truncate
truncate -s 0 /path/<file>.log
To truncate all docker logs, run the following.
truncate -s 0 /var/lib/docker/containers/*/*-json.log
Setup EC2 machines using Terraform
Jan 2026 →