Skip to content
TTariq AlwalidiAI Developer Tools Directory
D

Dozzle

Active and stableRuns locally ✓No paid API

A lightweight live container-log viewer that brings Docker, Swarm, and Kubernetes into one web UI with search, stats, and optional alerts.

$docker run -d --name dozzle -v /var/run/docker.sock:/var/run/docker.sock -v dozzle_data:/data -p 127.0.0.1:8080:8080 amir20/dozzle:v11.4.3
💡

Ideal use for this tool

Best for a developer or small team tracing live failures across several containers from one screen instead of repeating docker logs commands. It adds merged search, stats, and alerts while remaining self-hostable. It is not a long-term archive, and Docker socket access must be secured before public access.

Details and illustrated features

When a service fails inside a container, you may start with docker logs, open another terminal for a second container, rerun the command with grep, and manually line up timestamps. Dozzle puts live logs and container stats in one web interface running on your infrastructure. It helps you inspect Docker, Swarm, or Kubernetes without building a heavy observability stack. Because it reads a highly privileged Docker interface, deployment should begin with an explicit security design—not merely a published port.

🧭 What is Dozzle and how does it work?

Dozzle is an open-source, lightweight container log viewer. It runs as one container or binary and connects to a local Docker engine, Swarm, Kubernetes, or Dozzle agents on other hosts. The core self-hosted mode reads existing streams and does not copy logs into its own database. The /data volume stores settings, users, and alert configuration, not a complete log archive.

Docker, Swarm, and Kubernetes logs flowing through Dozzle to a browser
Docker, Swarm, and Kubernetes logs flowing through Dozzle to a browser

Original explanatory diagram, not a product screenshot.

🎯 How does it help you?

Dozzle fits a developer operating a small multi-container application or a team that needs a shared screen for live incident inspection. Instead of jumping across commands, you select containers, merge streams, search by text, level, or time, and view resource stats beside the log. The added value is clearer operational context: which container emitted an error, what preceded it, and whether memory pressure or a restart occurred nearby.

It is not automatically a replacement for long-term collection such as Loki or Elasticsearch/OpenSearch. If you need months of retention, central audit controls, or large distributed search, use a dedicated log store or evaluate the optional Dozzle Cloud retention model.

🌟 Key features and capabilities

1. Merge logs and search during an incident

The interface streams logs live, detects JSON, groups multiline stack traces, and supports text search, regular expressions, level filters, and time windows. Select several containers to see one merged stream rather than comparing separate terminals.

  • Where: choose one or more containers and open Logs.
  • How: select api and worker, set a time window, and search for a request ID or error.
  • Value: event order remains visible when a request crosses services.
  • Caution: Dozzle cannot repair poor logging. Add timestamps and structured fields in the application for reliable investigation.
Three container log streams merging into one searchable view
Three container log streams merging into one searchable view

The diagram explains the workflow; it is not real project output.

2. Browser-side SQL over JSON logs

The beta SQL Analytics feature builds a virtual table from JSON logs and runs DuckDB through WebAssembly in the browser. You can count errors, group them by minute, or sort slow requests using fields such as message.status and message.duration.

  • Where: choose SQL Analytics, or press Ctrl+Shift+F (Cmd+Shift+F on macOS).
  • Illustrative query: SELECT level, COUNT(*) FROM logs GROUP BY level groups lines by level.
  • Value: turn structured logs into a quick analytical question without exporting them.
  • Limit: JSON only, no external databases or resources, and a documented 4GB WebAssembly memory ceiling. DuckDB downloads on first use and may be slow on a constrained connection.
JSON logs passing through filters and browser-side DuckDB to a table or chart
JSON logs passing through filters and browser-side DuckDB to a table or chart

Original diagram of the documented browser-side path.

3. Alerts from logs, metrics, and container events

Create a local rule for a log message, CPU or memory threshold, or an event such as OOM or unhealthy. Rules support JSON fields, regular expressions, and cooldowns, and can send to a webhook, Slack, Discord, or ntfy. Rules and destinations are stored in /data.

  • How: configure a destination under Notifications, define the container and trigger expressions, and preview matches before saving.
  • Illustrative example: level == "error" for production-labelled containers with a cooldown to suppress repeats.
  • Value: move from watching a screen to a conditional notification you control.
  • Caution: destination configuration can read values from Dozzle's environment; keep unrelated secrets elsewhere. Cloud changes delivery and grouping when linked.
A log, metric, or OOM event passing through a rule and cooldown to an alert channel
A log, metric, or OOM event passing through a rule and cooldown to an alert channel

The diagram shows the documented path and does not claim a live destination test.

4. Multiple hosts in one interface

A central instance can connect to several Dozzle agents. Swarm mode discovers nodes, and Kubernetes is supported. Hosts can be named and grouped, with agents added through settings or DOZZLE_REMOTE_AGENT.

  • Value: inspect distributed services without a separate UI on every server.
  • Security limit: Dozzle's bundled certificate is identical in every image. It encrypts traffic but does not authenticate identity. Keep agent port 7007 private or generate unique certificates. Set DOZZLE_ENABLE_ACTIONS=false and DOZZLE_ENABLE_SHELL=false on the agent itself when that host must refuse those operations.
  • Architecture limit: documentation says a socket proxy cannot sit on top of an agent; a proxied remote Docker connection is a different topology.
Two hosts and Dozzle agents connected to a central interface with an authentication caution
Two hosts and Dozzle agents connected to a central interface with an authentication caution

Encryption alone is not identity authentication or network isolation.

5. Read-only MCP tools for coding assistants

Enable a Model Context Protocol endpoint at /api/mcp so a coding assistant can list containers, read and search logs, list hosts, and fetch stats. The documented tools are read-only. Responses are capped at 1MB, preserving the newest entries when truncated. MCP is off by default.

  • How: set DOZZLE_ENABLE_MCP=true and connect a Streamable HTTP client.
  • Authentication: simple and OIDC deployments can use OAuth with compatible clients. A headless client can use a random static token of at least 32 characters.
  • Caution: without an authentication provider, anyone who can reach the endpoint can use it. A static token never expires and sees all containers allowed by the global filter rather than a per-user filter.
A coding assistant authenticating before reaching the read-only MCP endpoint
A coding assistant authenticating before reaching the read-only MCP endpoint

The diagram shows the access boundary; enabling MCP alone does not make it safe.

6. Privacy and data paths

In core self-hosted mode, log viewing stays on your network and Dozzle does not create its own log archive. Anonymous analytics are enabled by default and sent to b.dozzle.dev: version, deployment mode, auth provider, selected feature flags, engine versions, small counts, and a random installation ID. The documentation says log content, container and image names, IP addresses, and user IDs are not sent. Disable the beacon with DOZZLE_NO_ANALYTICS=true.

Dozzle Cloud is a separate optional layer. When linked, it receives the logs and container metadata you forward for search, retention, and analysis under the plan's limits. Do not describe every Dozzle deployment as fully local if Cloud, external identity, or the first DuckDB download is involved.

The self-hosted path, anonymous analytics, opt-out, and optional Cloud path
The self-hosted path, anonymous analytics, opt-out, and optional Cloud path

🪜 Illustrative workflow: trace an API 500

Not run on a live system: you have gateway, api, and worker containers on one Docker host.

  1. Run Dozzle on a private network and persist /data.
  2. Open http://localhost:8080 and confirm that all three containers appear.
  3. Select the three containers in a merged view and choose the last five minutes.
  4. Search for a request ID or status=500, then inspect surrounding lines.
  5. If logs are JSON, open SQL Analytics and group failures by message.path.
  6. Review memory and CPU for the same container to see whether pressure coincided with the error.
  7. Add an alert only after understanding the pattern, with a cooldown to prevent a crash loop from flooding the channel.
  8. Before team access, add authentication and TLS through a reverse proxy and restrict the Docker API. Do not expose port 8080 directly to the internet.

⚖️ What changes compared with manual work?

TaskManual docker logsWith Dozzle
Several containersOne terminal and command per containerMerged view with host or group selection
SearchRebuild grep/jq pipelines as the question changesText, regex, level, and time controls in the UI
JSONFormat manually or exportField parsing and browser-side SQL
Resource contextSeparate command or toolCPU and memory beside logs
AlertingCustom script and webhookLocal rules and documented destinations
AI assistantCopy excerpts manuallyRead-only MCP tools with required auth design

This compares access patterns, not measured time savings. For one container and the last hundred lines, docker logs may remain simpler and expose less surface.

⚙️ Important configuration

  • DOZZLE_FILTER limits visible containers with a Docker filter. Treat it as a global boundary, not a substitute for user roles.
  • DOZZLE_AUTH_PROVIDER supports simple, oidc, and forward-proxy. Never publish Dozzle directly in forward-proxy mode because it trusts identity headers from the proxy.
  • DOZZLE_ENABLE_ACTIONS, DOZZLE_ENABLE_SHELL, and DOZZLE_ENABLE_MCP default to false. Keep them off unless the task justifies them.
  • DOZZLE_NO_ANALYTICS=true disables the anonymous beacon.
  • /data holds users, settings, and alerts; protect and back it up appropriately.

🚀 Installation and first run

The verified release is v11.4.3, published 13 November 2026. Docker Engine 19.03+ (API 1.40+) is required. Official quick-start examples use latest; pinning a tag makes deployment reproducible:

docker run -d --name dozzle \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v dozzle_data:/data \
  -p 127.0.0.1:8080:8080 \
  amir20/dozzle:v11.4.3

Then open http://localhost:8080. Binding to 127.0.0.1 reduces exposure but does not remove the socket risk. Do not run the command before understanding the permission and choosing an appropriate socket proxy or alternative.

🔗 Integrations and compatibility

Dozzle supports Docker, Docker Swarm, and Kubernetes; the homepage also lists Podman. Images are available from Docker Hub and GHCR. Authentication options include a simple user file, GitHub/OIDC sign-in, OpenID Connect, and a forward proxy. MCP uses Streamable HTTP with compatible clients such as VS Code and Claude Desktop. Feature parity is not guaranteed across Docker, Kubernetes, agents, and remote hosts; consult the mode-specific guide.

💰 Cost and local operation

The code is MIT licensed, and core self-hosted operation requires no paid API. Server, Docker, identity, and messaging costs remain separate. Dozzle Cloud is optional. At verification, it listed Free at $0, Pro at $5/month, and Team at $15/month, with different searchable-log, retention, and instance limits. Pricing changes; consult the live page before making a decision.

⚠️ Limitations and when not to use it

  • Core self-hosting is a live viewer, not a durable log archive.
  • SQL is beta, JSON-only, and limited by browser memory up to 4GB.
  • Docker socket access is broad; a constrained collection agent may be better for highly sensitive hosts.
  • Enabling shell or actions changes the UI from viewing to actual container control.
  • It does not replace long-term metrics, distributed tracing, or enterprise retention and audit controls.
  • Optional Cloud changes the data path, retention limits, and cost.

🔐 Security and permissions

The Docker socket passing through a restricted proxy before Dozzle, authentication, and a private network
The Docker socket passing through a restricted proxy before Dozzle, authentication, and a private network

Mounting /var/run/docker.sock gives Dozzle effectively root-equivalent host capability. Adding :ro to the mount does not restrict the Docker API; it only marks the socket file read-only while API calls still pass. Use a socket proxy that permits only necessary operations, leave actions and shell disabled, and add authentication and TLS before public access. In forward-proxy mode, publish only the proxy and keep Dozzle on an internal network.

For remote agents, use a private network or unique certificates rather than the bundled certificate. For MCP, use OAuth or a strong random token and rotate it when needed. Do not put secrets in logs; any permitted log reader can see them.

📚 Sources and verification date

Checked 18 November 2026 against the original repository, v11.4.3 release, getting started guide, authentication and security, SQL engine, alerts, MCP, analytics, agent mode, and Cloud data policy. GitHub displayed 15.0k stars and 658 forks at inspection time. These changing popularity counts are neither quality nor security ratings. I did not install Dozzle or run the example on a live system.