DockLog
Updated: Nov 26, 2026
Tail Docker and Kubernetes logs in real time, watch host metrics, and control workloads from one self-hosted image with per-user RBAC and chat alerts.
About DockLog
Overview
DockLog is a self-hosted dashboard that streams Docker container and Kubernetes pod logs over WebSockets, so operators read live output instead of polling. A single container image covers both runtimes through a RUNTIME_MODE setting of docker, kubernetes, or both, and it needs no Elasticsearch cluster, sidecar agents, or log collectors. The same interface reports live CPU and memory for the host, containers, and pods, and lists pods, deployments, HPAs, services, and cluster events in a Kubernetes hub.
Operators mount the Docker socket, a kubeconfig, or both, then pick auth mode with SQLite or no-auth mode for a fast local dashboard. Workload actions such as start, stop, restart, and remove sit behind server-level ALLOW flags plus per-user can permissions, and auth mode audit-logs those actions. The project publishes under the MIT license as one image that typically uses about 30MB of RAM, so it runs on a small VPS, a Raspberry Pi, or a NAS.
Key Benefits
- Live tailing streams stdout and stderr over WebSockets with autoscroll, reconnect, and timestamps.
- Wildcard or regex RBAC rules decide which containers, namespaces, and pods each user sees.
- Alert rules watch log patterns, Docker and Kubernetes events, and CPU or memory thresholds with cooldowns and throttling.
- Workload, security, health, admin, and alert events route to Slack, Microsoft Teams, Discord, or custom HTTPS webhooks.
- No-auth deployments skip the database entirely and run in memory without DB_PATH.
- Android and desktop clients connect to an existing server for live logs, pod controls, log export, and host metrics.
How It Works
Setup runs in three steps. First, mount the Docker socket, a kubeconfig, or both, and set RUNTIME_MODE to control which APIs and UI sections turn on. Second, choose auth mode with SQLite for teams or no-auth mode for a local dashboard. Third, read logs, watch host stats, and start, stop, or restart containers and pods from the same UI. A deployment builder generates a docker-compose.yaml or plain docker run command from your runtime, port, and action flags, and the CLI ships docklog reset-password, config, and version subcommands.
Use Cases
Use Cases
- Platform teams apply RBAC patterns per container and namespace so each developer tails only their own services.
- Small teams on a shared VPS give everyone log access through auth mode and audit logs instead of distributing SSH keys.
- Homelab and NAS owners run one image on a Raspberry Pi or small cloud instance with a socket or kubeconfig mount.
- Agencies hand a client read-only log access to their stack without exposing the Docker daemon or internal workloads.
- Dev teams debugging an incident keep logs and host signals in one place instead of switching tools.
- Sites mixing runtime types set RUNTIME_MODE=both to use the Docker socket for local containers and a kubeconfig for cluster pods under one RBAC model.
Why Choose This Product
DockLog targets teams that want answers now rather than another platform project: setup takes under a minute, Docker and Kubernetes share one UI and one RBAC model, and per-user permissions gate visibility and actions without handing out cluster admin. The project states plainly that DockLog is not a replacement for Elasticsearch at scale, and it points teams with large-scale or long-term log needs toward a full logging stack. The iOS companion app is still marked coming soon.
DockLog Pros & Cons
- One image with ~30MB RAM use serves Docker and Kubernetes with no sidecars
- Live WebSocket log streams with autoscroll, reconnect, and timestamps
- Built-in wildcard and regex RBAC plus audited workload actions
- MIT-licensed and self-hosted, so logs stay on your own server
- Deployment builder outputs Compose or docker run commands
- Not a replacement for Elasticsearch at scale
- iOS companion app is still marked coming soon
Key Features
Live Log Streams
Streams stdout and stderr from Docker containers and Kubernetes pods over WebSockets with autoscroll, reconnect, and timestamps.
Granular RBAC
Applies wildcard or regex visibility rules to containers, namespaces, and pods alongside two-layer action rights: server ALLOW gates and per-user can flags.
Kubernetes Hub
Shows namespaces, pods, deployments, HPAs, services, cluster events, and pod logs, with kubeconfig mounting or in-cluster ServiceAccount deployment.
Host Metrics
Tracks live CPU and memory for the host, containers, and pods, keeping about 30 days of history in SQLite.
Alert Rules
Monitors log patterns, Docker events, Kubernetes events, and CPU or memory thresholds with per-rule severity, scope, throttling, and channel delivery.
Webhook Notifications
Sends workload, security, health, admin, and alert events to Slack, Microsoft Teams, Discord, or any custom HTTPS webhook.
Workload Controls
Starts, stops, restarts, and removes containers and pods when both server ALLOW flags and per-user permissions allow, with audit logging in auth mode.
In-Browser Shell
Opens an optional terminal inside containers and pods from dedicated detail views when permissions allow.
Optional Database
Runs in memory without DB_PATH in no-auth mode, and persists users and audit records in SQLite when you mount a volume.
Deployment Builder
Generates a docker-compose.yaml or plain docker run command from your runtime, auth mode, port, and workload action choices.
Frequently asked questions about DockLog
Is DockLog free and open source?
DockLog publishes under the MIT license, with the source available on GitHub at aimldev/docklog. You self-host it by pulling the aimldev/docklog image and running it with Docker Compose or a plain docker run command, so there is no hosted account to buy.
Does DockLog require a database?
No. No-auth mode runs without DB_PATH and keeps everything in memory. Mount a volume and set DB_PATH when you want users and audit records to survive restarts, and host metric history of about 30 days lives in SQLite.
How do I connect DockLog to Kubernetes?
Mount a kubeconfig or run DockLog in-cluster with a ServiceAccount, then set RUNTIME_MODE to kubernetes or both. The Kubernetes hub then shows namespaces, pods, deployments, HPAs, services, cluster events, and pod logs.
Can I restrict which containers users can see?
Yes. Wildcard or regex rules scope visibility by container, namespace, and pod, and two layers govern actions: server ALLOW flags for starting, stopping, restarting, deleting, and shell access, plus matching per-user can permissions in Admin, including for the admin account.
Where do alert notifications go?
Workload, security, health, admin, and alert events route to Slack, Microsoft Teams, Discord, or any custom HTTPS webhook. Each alert rule sets its own severity, scope, throttling, and delivery channel.
Can I use DockLog without authentication?
Yes. No-auth mode suits a fast local dashboard, and the SQLite database becomes optional. Auth mode adds SQLite-backed user sessions, RBAC rules, and audit records for teams sharing a host or cluster.

