Hands-on task
This task is step 3 of the course “Docker: everyday work”
Container logs
The worker container has processed a batch of jobs and writes about it to its log. Save:
- to
/root/last.txt— the last 5 lines of its log; - to
/root/error.txt— the log line that containsERROR(there's only one).
What you'll practise:
- docker logs
- --tail
- stdout and stderr