Dozzle
The containers of every Docker host Dozzle reaches, with their logs searched on the server and followed live, in the Containers tab and the Mac Containers workspace.
iPhoneMacOn this page
Dozzle is a small web app for reading container logs, and with its agents it covers several Docker hosts at once. Pocket Homelab reads Dozzle to list the containers of every host it reaches and to show, search and follow their logs. It feeds the same Containers screen as Docker Engine: that page describes the screen in full, this one covers what Dozzle adds.
What you get
- Every container on every host Dozzle reaches, in the Containers screen (tab, Home card, issue chip, Spotlight entry and Mac workspace, all described on the Docker Engine page). The Containers tab is off by default: turn it on in Settings → Tabs.
- Logs searched by Dozzle on the server, across the whole log, not just the lines on screen.
- Follow with Dozzle’s live stream: new lines appear the moment the container writes them.
- A Host filter and host names on stacks and rows when Dozzle reaches more than one host.
- Open Dozzle in the toolbar and Open in Dozzle for each container, to jump to Dozzle’s own page.
- Mac: a Dozzle card in the Services directory that opens the Containers workspace (⇧⌘8 by default).
Set up
-
Run Dozzle if you don’t already. A minimal setup:
services: dozzle: image: amir20/dozzle:latest restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock - ./dozzle:/data ports: - "8080:8080" -
Optional: turn on Dozzle’s own sign-in. Add
DOZZLE_AUTH_PROVIDER: simpleunderenvironment:, then create the users file in the folder mounted at/data:docker run -it --rm amir20/dozzle generate admin --password 'a-long-password' \ --email you@example.com --name "Admin" > dozzle/users.ymlRestart Dozzle. Without this step Dozzle has no sign-in, and you leave the user name and password empty in the app.
-
Optional: to see more hosts, run a Dozzle agent on each of them and list them on the main Dozzle (see More than one host).
-
In Pocket Homelab: Settings → Services → Dozzle, paste the address in Dozzle URL (for example
http://192.168.1.10:8080, or your reverse proxy’s HTTPS address). If you turned on the sign-in, fill in Dozzle user name and Dozzle password. Tap Test connection. -
The Containers card shows up on Home. Turn on the Containers tab in Settings → Tabs if you want it in the tab bar.
| Key | Field | Required | Secret | Where to get it |
|---|---|---|---|---|
DOZZLE_URL | Dozzle URL | Required | — | Base address of your Dozzle log viewer. The Containers tab lists the containers of every host Dozzle reaches and reads, searches and follows their logs (read-only). Leave empty to hide it. |
DOZZLE_USERNAME | Dozzle user name | Optional | — | Optional. For Dozzle with its own sign-in (--auth-provider simple). Leave empty when Dozzle has no sign-in. |
DOZZLE_PASSWORD | Dozzle password | Optional | Secret | Optional. That user's Dozzle password. Stored in the Keychain. |
More than one host
Dozzle’s agents let one Dozzle read the containers of several servers. On each extra server, run an agent:
services:
dozzle-agent:
image: amir20/dozzle:latest
command: agent
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "7007:7007"
Then tell the main Dozzle about them with DOZZLE_REMOTE_AGENT: nas:7007,pi:7007 (add |name to an address, as
in pi:7007|Raspberry Pi, to give it a nicer name). Keep port 7007 on your LAN or VPN: anyone who can reach it
can read that server’s containers.
In the app, every host’s containers show up together. When there is more than one host:
- The Filter menu gets a Host picker (All hosts or one host).
- Stack headers and rows show the host name, and the same stack name on two hosts is two stacks.
- The line under the counters says “on 3 hosts”, and the Home card lists the number of hosts.
On iPhone
Everything on the Docker Engine page applies. What changes with Dozzle:
- Logs: the search field says Search (Return searches all of Dozzle’s log). Typing filters the lines already loaded; pressing Return asks Dozzle to search the whole log and shows what it finds. Clear the field to go back. The bar at the bottom shows “from Dozzle”, the search, and “live” while the stream is open.
- Follow uses Dozzle’s live stream. If the stream closes, the app falls back to asking for new lines every 3 seconds.
- Log levels (and so the line colours) come from Dozzle.
- Open Dozzle in the toolbar opens Dozzle’s web page, and Open in Dozzle in a container’s menu opens that container there.
- The list refreshes every 15 seconds; the logs of a container with both sources come from Dozzle.
On Mac
The Containers workspace (under Infrastructure, ⇧⌘8 by default) is the same screen, with the same Dozzle search and live Follow. Right-click a container for Open in Dozzle. The Containers widget on Home counts every host’s containers. See Docker Engine for the rest.
Actions
None from Dozzle itself. The app never uses Dozzle’s own container controls; Start, Stop and Restart come from Docker Engine, and only for that engine’s containers.
Works with
- Docker Engine: set up both and you get the best of each. Docker’s containers keep their buttons and stats, Dozzle adds its other hosts (read-only) and serves the logs for every container it knows. The app matches containers by ID, so the server both of them see is listed once. If Dozzle can’t read a log, the app reads it from Docker instead.
- If one of the two doesn’t answer, the other still fills the screen, with an orange line such as “Dozzle: timed out” under the counters.
Tips & troubleshooting
- The app can only sign in with Dozzle’s simple sign-in (
DOZZLE_AUTH_PROVIDER=simple), not with a login page that your reverse proxy puts in front of Dozzle. - The container list comes from Dozzle’s live event stream. If the app says “the event stream ended before listing the containers” or times out, check that a reverse proxy in front of Dozzle passes streaming responses through without buffering them.
- Dozzle and Docker are two services, so each takes one of the free plan’s three slots.