All containers, including stopped ones
Read-onlydocker ps -a --format 'table {{.Names}}\t{{.Status}}'Expect: "Restarting" or "Exited (1)" points to the container to inspect.
← Back to overviewAll commands
03 / FIELD NOTES
Read logs for containers and systemd services, and follow them live.
Containers log to Docker, system services log to the journal. Knowing which one to ask saves guessing, and the first error line usually names the cause.
An app restarts in a loop, shows a blank page, or stopped after an update.
docker ps -a --format 'table {{.Names}}\t{{.Status}}'Expect: "Restarting" or "Exited (1)" points to the container to inspect.
docker logs --tail 100 komariExpect: Add -f to keep following. Press Ctrl+C to stop.
journalctl -u ssh -n 50 --no-pagerExpect: Use -f to follow, or --since "1 hour ago" to narrow the time range.
Read-only. Logs may contain tokens or IPs; check before sharing them.
{
"slug": "container-logs",
"risk": "safe",
"tags": [
"logs",
"docker",
"systemd"
],
"updated": "2026-10-30",
"pathIndex": null,
"why": "Containers log to Docker, system services log to the journal. Knowing which one to ask saves guessing, and the first error line usually names the cause.",
"steps": [
{
"command": "docker ps -a --format 'table {{.Names}}\\t{{.Status}}'",
"risk": "safe"
},
{
"command": "docker logs --tail 100 komari",
"risk": "safe"
},
{
"command": "journalctl -u ssh -n 50 --no-pager",
"risk": "safe"
}
]
}