79639915

Date: 2025-05-27 06:38:55
Score: 0.5
Natty:
Report link

use this command when you want to filter docker logs of container for a specific period of time (eg: you want file content since 2 hours)and output the content to a text file

docker logs --since "$(date -d '2 hours ago' +%Y-%m-%dT%H:%M:%S)" <container_name_or_id> >& logname.txt
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ravi