Docker Docker Daemon Logs
Docker engine logs for daemon operations, API calls, and container lifecycle
Quick Facts
Default Path (Linux)
journalctl -u dockerDefault Format
systemd journal or text
JSON Native
No
Rotation
journald or logrotate
Log Example
Default format: journald format
Example Log Entrylog
Dec 20 14:32:18 dockerhost dockerd[1234]: time="2025-12-20T14:32:18.123456789Z" level=info msg="Container started" container=abc123Structure:
timestamp hostname docker[pid]: messagePaths by Platform
Ubuntu / Debian (systemd)
journalctl -u docker.serviceRHEL / CentOS (systemd)
journalctl -u docker.serviceWithout systemd
/var/log/docker.logAvailable Formats
journald format
Default
Example:
Dec 20 14:32:18 dockerhost dockerd[1234]: time="2025-12-20T14:32:18.123456789Z" level=info msg="Container started" container=abc123Structure:
timestamp hostname docker[pid]: messageFields Reference
| Field | Type | Description | Example |
|---|---|---|---|
time | datetime | Event timestamp | 2025-12-20T14:32:18.123456789Z |
level | string | Log level | info |
msg | string | Log message | Container started |
container | string | Container ID (when applicable) | abc123def456 |
Parsing Patterns
Collector Configurations
journalctlyaml
1# View docker daemon logs2journalctl -u docker.service -f34# View last 100 lines5journalctl -u docker.service -n 10067# View logs since specific time8journalctl -u docker.service --since "2025-12-20 14:00:00"910# Export to JSON11journalctl -u docker.service -o jsonConfiguration
Enable Logging
Configure daemon log level in daemon.json
/etc/docker/daemon.json
{
"debug": false,
"log-level": "info"
}Use Cases
Container lifecycle
Track container create/start/stop/remove
msg
container
Docker API errors
API request failures
level
msg
Troubleshooting
Tested On
v27.4.0 on Ubuntu 24.04
container_expert - 2025-12-10
Last updated: 2025-12-10 by admin
1 contributor67 upvotes
Validated
Community Discussions
Help improve this documentation
Found an error or want to add more examples? Contributions are welcome!