Get Container Logs & Truncate

PHOTO EMBED

Fri Dec 22 2023 23:18:44 GMT+0000 (Coordinated Universal Time)

Saved by @swina

sudo docker container inspect  --format='{{.LogPath}}' <container-name>
sudo truncate -s 0 <path_to_log_file>
content_copyCOPY