Back to commands

Linux Survival Basics

Read-only

Read 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.

  1. docker events --since 30m --until 0s
  2. docker events --since 30m --until 0s

next steps

Related commands

Cybersecurity Triage Read-only

Review Recent Docker Events

Docker keeps a recent event trail for starts, stops, pulls, and health changes.

docker events --since 30m --until 0s
Linux Survival Basics Can be slow

List Docker Container Restart Status

Restart loops are visible before rebuilding anything.

docker ps -a --format 'table {{.Names}} {{.Image}} {{.Status}} {{.RestartCount}}'
Linux Survival Basics Can be slow

Read Recent Docker Container Logs

Recent container logs usually show the failing command or dependency.

docker logs --tail 80 container_name
Linux Survival Basics Can be slow

Read Recent Logrotate Journal

The journal can show why rotation skipped.

journalctl -u logrotate --since '7 days ago' --no-pager
Linux Survival Basics Can be slow

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

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.

  • LPIC-1 style command-line practice
  • LFCS style performance-task practice

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.