Minimal Docker image (Alpine) with btop++, accessible from the browser.
469
Minimal Docker image (Alpine) with btop++, accessible from the browser through ttyd or from the terminal. Shows the host processes, network, disks and sensors.
| Image tag | Alpine | btop++ | ttyd |
|---|---|---|---|
1.0.0 | 3.24.4 | 1.4.8 | 1.7.7-r0 |
docker run -d --name btop --pid=host --network=host --privileged \
-v $(pwd)/config:/config -e PORT=7681 \
--restart unless-stopped hbixu/btop-plus-plus:latest
Open http://<host>:7681.
Terminal only:
docker run --rm -it --pid=host --network=host --privileged hbixu/btop-plus-plus:latest btop
services:
btop:
image: hbixu/btop-plus-plus:latest
container_name: btop
pid: host
network_mode: host
privileged: true
environment:
- PORT=7681
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
# Disks to show in btop (read-only)
# - /mnt/data:/mnt/data:ro
restart: unless-stopped
| Variable | Required | Description |
|---|---|---|
PORT | No | Web interface (ttyd) port (default: 7681) |
FONT_SIZE | No | Font size of the web interface (default: 16) |
| Path | Description |
|---|---|
/config | btop configuration (/config/btop/btop.conf) |
| Option | Purpose |
|---|---|
pid: host | See the host processes |
network_mode: host | See the host network interfaces |
privileged: true | Sensors/temperatures and hardware metrics |
ttyd has no authentication by default — do not expose the port to the internet. The container runs as root with the host PID namespace, so host processes can be killed from btop.
Apache-2.0. Bundled software: btop++ (Apache-2.0), ttyd (MIT), tini (MIT).
docker pull hbixu/btop-plus-plus:latest