HUB
Sign inSign up

hbixu/btop-plus-plus

By hbixu

•Updated 14 days ago

Minimal Docker image (Alpine) with btop++, accessible from the browser.

Image
Developer tools
Monitoring & observability
0

469

hbixu/btop-plus-plus repository overview

⁠btop-plus-plus

Minimal Docker image (Alpine) with btop++⁠, accessible from the browser through ttyd⁠ or from the terminal. Shows the host processes, network, disks and sensors.

Source linux/amd64 linux/arm64

⁠Features

  • btop++⁠ compiled from the official source code, at a pinned version
  • Web access through ttyd⁠ on a configurable port
  • Built-in healthcheck
  • Based on the official Alpine⁠ image

⁠Image versions

Image tagAlpinebtop++ttyd
1.0.03.24.41.4.81.7.7-r0

⁠Quick start

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

⁠Example docker-compose

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

⁠Environment variables

VariableRequiredDescription
PORTNoWeb interface (ttyd) port (default: 7681)
FONT_SIZENoFont size of the web interface (default: 16)

⁠Volumes

PathDescription
/configbtop configuration (/config/btop/btop.conf)

⁠Required permissions

OptionPurpose
pid: hostSee the host processes
network_mode: hostSee the host network interfaces
privileged: trueSensors/temperatures and hardware metrics

⁠Security note

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.

⁠License

Apache-2.0. Bundled software: btop++ (Apache-2.0), ttyd (MIT), tini (MIT).

Tag summary
Recent tags
Content type
Image
Digest
sha256:3b2d94cd9…
Size
6.1 MB
Last updated
14 days ago
docker pull hbixu/btop-plus-plus:latest