Linux Survival Basics
Read-onlyRead Recent Docker Restart Events
You need recent Docker lifecycle events without editing containers.
Command
docker events --since 30m --until 0s
Before you run this
System impact: Read-only. Low when scoped to the shown target.
When not to use it: Do not leave event streams running unattended in shared terminals.
Expected output
Recent die, restart, start, and health_status events.
System impact
Read-only. Nothing changes. The command reads current state and prints diagnostic evidence.
Recovery / rollback: no state is changed.
When to use it
Use when restart timing matters.
When not to use it
Do not leave event streams running unattended in shared terminals.
Common misread
Do not leave event streams running unattended in shared terminals.
Example run
Commands shown
These are the commands shown for inspection. Treat them as an example, not proof that your system will behave identically.
docker events --since 30m --until 0sdocker events --since 30m --until 0s
next steps
Related commands
Review Recent Docker Events
Docker keeps a recent event trail for starts, stops, pulls, and health changes.
docker events --since 30m --until 0s
List Docker Container Restart Status
Restart loops are visible before rebuilding anything.
docker ps -a --format 'table {{.Names}} {{.Image}} {{.Status}} {{.RestartCount}}'
Read Recent Docker Container Logs
Recent container logs usually show the failing command or dependency.
docker logs --tail 80 container_name
Read Recent Logrotate Journal
The journal can show why rotation skipped.
journalctl -u logrotate --since '7 days ago' --no-pager
Read Recent systemd Timer Logs
Timer logs show whether systemd attempted to trigger the task.
journalctl -u backup.timer --since "24 hours ago" --no-pager
next diagnostic step
Where to go from this command
- Related problem hub Use this command as part of the repair path.
Study mapping
Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.