GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vulcanshen/boxu: A terminal UI for Apple container, Docker, Podman, containerd and CRI-O — every container runtime in one screen: containers, images, networks and volumes in the same lists, logs side by side, every operation in the Space menu.

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude/rules
.claude/rules
 
 
.github/workflows
.github/workflows
 
 
cmd/boxu
cmd/boxu
 
 
docs
docs
 
 
harness-assets
harness-assets
 
 
internal
internal
 
 
.gitignore
.gitignore
 
 
.goreleaser.yaml
.goreleaser.yaml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README-zh_TW.md
README-zh_TW.md
 
 
README.md
README.md
 
 
family.mk
family.mk
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
install.sh
install.sh
 
 
uninstall.sh
uninstall.sh
 
 

Repository files navigation

boxu

boxu icon

Release License

Language: English · 繁體中文

Every container runtime in one terminal screen.

boxu shows what your container engines hold, kind by kind: compose projects, pods, containers, images, networks and volumes, from every context you check, in the same lists. It finds Docker's contexts by itself (Docker Desktop, OrbStack, Colima, Rancher Desktop, a remote one over ssh) and follows each engine as things change. It talks to Apple's container, Docker, Podman, containerd (through nerdctl) and CRI-O (through crictl).

boxu: the kinds on the left, the list of the kind under the cursor beside them, its details below

Features

  • One list of kinds, always the same: Compose, Pods, Containers, Images, Networks, Volumes and Contexts. Move the cursor and the list beside it follows.
  • Details under the list: the item under the cursor, in tabs: for a container its log, following the newest line, then its relatives and its info.
  • Relatives: what a container uses (its image, networks, volumes, compose project) and which containers use an image, a network or a volume. Enter on one takes you to it; Esc brings you back.
  • Compose projects: Enter on a project goes into its containers.
  • Act on what you see: start, stop, restart and delete containers, open a shell in one or its published port in the browser; bring a compose project up or down, restart it, pull its images; pull and delete images; delete or prune what nothing uses. Whatever removes something asks first.
  • Monitor: several logs on one screen: pin containers (or all of a compose project's) and their logs are side by side, up to four to a page (L sets how many), each following its newest line. A container that ends leaves its place; made again under the same name, it is back. The pins and their order are kept.
  • Several contexts at once: C checks which contexts to show; with more than one, every list says which context a row is from, and an engine two contexts point at is listed once.
  • What is in use: images, networks and volumes say how many containers use them; the ones nobody uses are dimmed.
  • Always current: boxu listens to each engine's events, so the lists follow by themselves.
  • Add a context by hand: a remote engine or another socket, with a form; test the connection before saving.
  • A context in trouble says why: not running, no permission or unreachable, with what to do about it.
  • Two screens: [B]rowse to look around, [M]onitor for the logs of the containers you pin.
  • The terminu family's keys: Space shows what you can do here, ? every key that works here.

Install

Requirements

  • macOS or Linux (WSL too).
  • A Nerd Font terminal profile: the icons and the frames are Nerd Font glyphs.
  • A truecolor (24-bit) terminal: the faded colours and the layer colours cannot be told apart in 256 colours.
  • A terminal at least 60 columns wide and 32 rows high; in a smaller one boxu shows only its name, the size it needs and how to quit, and comes back as it was once the terminal grows.

boxu measures how many cells an icon and a powerline symbol take when it starts; boxu iconwidth prints what it found. When it gets them wrong, set them:

Variable What it sets
BOXU__ICON_WIDTH The cells an icon takes, for boxu
BOXU__POWERLINE_WIDTH The cells a powerline symbol takes, for boxu
TERMINU__ICON_WIDTH The cells an icon takes, for every terminu family app: set it once and they all read it
TERMINU__POWERLINE_WIDTH The cells a powerline symbol takes, for every terminu family app
LC_TERMINU_ICON_WIDTH The cells an icon takes, brought over ssh by a family app with ssh
LC_TERMINU_POWERLINE_WIDTH The cells a powerline symbol takes, brought over ssh by a family app with ssh

For an icon and for a powerline symbol each, boxu takes the first one set in the order of the table, and measures only when none is. Run inside a family app's terminal, boxu gets the TERMINU__ ones from the app around it; reached over ssh from one, the LC_TERMINU_ ones.

Homebrew

brew install vulcanshen/tap/boxu

Script

curl -fsSL https://raw.githubusercontent.com/vulcanshen/boxu/main/install.sh | sh

No sudo: it installs to ~/.local/bin.

The first start

boxu opens on the [B]rowse screen with the cursor on Containers, and checks every context it finds that answers; press C to check another set. It writes nothing until you change something.

Update

boxu update

It updates boxu the way it was installed: through Homebrew, or by downloading the latest release.

Uninstall

brew uninstall boxu

Installed with the script:

curl -fsSL https://raw.githubusercontent.com/vulcanshen/boxu/main/uninstall.sh | sh

Quick start

  1. Run boxu.
  2. Press j and k to go through the kinds; the list beside them follows.
  3. Press Enter or Tab to go over to the list, / to filter it, Space to see what you can do there.
  4. Press C to check which contexts to show.
  5. Press p on a container to pin it, then M for the Monitor screen to follow its log; B comes back.
  6. Press q to quit.

Usage

boxu              start
boxu version      print the version (-v, --version)
boxu help         print the command-line usage (-h, --help)
boxu update       update boxu to its latest release
boxu iconwidth    print how many cells an icon and a powerline symbol take

The keys every family app shares:

Key What it does
Space What you can do here: on this item, on this panel, and for the whole app
? Every key that works here
! The App Log: what was done and what went wrong, newest last
Tab, 1–9 The next panel; jump to a panel by its number
j|k, h|l Move; h|l switch tabs; past the last one you are back at the first
u|d, gg|G Half a page up and down; to the top, to the bottom
/ Filter the list as you type
> < + -, = Make the panel wider, narrower, taller, shorter; put the screen's layout back
Enter The obvious thing: on a kind, go to its list
Esc Close the popup on top, or go one level up; it never leaves boxu
q Quit

boxu's own:

Key Where What it does
B, M everywhere The [B]rowse and [M]onitor screens
C everywhere Check which contexts to show
z everywhere Zoom: the focused panel alone; again for all of them
s, t, r containers, pods Start, stop, restart
S, o containers A shell in the container; its published port in the browser
U, r, P compose projects Up, restart, pull the images
P images Pull the image again
x the list Delete, after asking; on a compose project, take it down (X takes its volumes too)
X images, networks, volumes Prune: delete every image with no tag, every network or volume nothing uses, after asking
p containers, compose projects, pods Pin to the Monitor: the container, or every running container of the group
Enter the list On a compose project or a pod, go into its containers (Esc comes back out); on anything else, go to its details
A, e, T contexts Add a context by hand; edit one you added; test the connection
Enter the details On the info and the log, open them to scroll, search (/) and copy (v, y); on a relative, go to it (Esc goes back)

On the Monitor screen:

Key What it does
h|l, j|k The log on the left, on the right, below, above; past the page's edge l turns to the next page, h to the one before
Enter Open the log to scroll, search (/) and copy (v, y); it goes on following
z Zoom: this log alone; again for the page
PgUp|PgDn, gg|G The page before, after; the first page, the last. The frame's bottom right says which page it is: 2 of 3
1–9 Go to that page
D Drag: hold this log, move it with h|l and j|k, Enter drops it, Esc puts it back
m Move this log to the start
p Unpin it
P Unpin all, after asking
L Logs per page: 1 to 4

Settings and data

What Where Moved by
Settings ~/.config/boxu/config.yaml ($XDG_CONFIG_HOME/boxu) BOXU__CONFIG
State state.yaml, beside the settings BOXU__STATE
Data ~/.boxu/ BOXU__DATA
  • config.yaml is yours to write; boxu only reads it. Of the family's shared setting keys it reads input_tab_width (default 4): how many cells a tab in a log is drawn as.
  • state.yaml keeps the contexts you checked and where you moved the lines between panels. Delete it and boxu is back to its defaults.
  • The data directory holds what you chose for boxu: contexts.yaml, the contexts you added by hand, and pins.yaml, the containers pinned to the Monitor, by context and name, in your order.

A file boxu cannot read is never overwritten: boxu asks to move it aside to .bak first.

Limits

  • CRI-O is to look at only: its containers are the kubelet's, which would put back what boxu changed.
  • A shell in a container, the browser and the compose actions run the engine's own client (docker, podman, container, nerdctl, crictl), which must be on PATH; bringing a compose project up or pulling its images also needs its compose file where it was, and containerd does not note where that is: its projects can be restarted and taken down, not brought up or pulled.
  • The Monitor shows at most four logs a page, and a long log line is cut at the cell's edge: zoom (z) or open it (Enter) to read it whole.
  • macOS and Linux only (WSL too); there is no Windows build.

Links

  • CHANGELOG

The terminu family

boxu follows terminu design:

  • terminu design: the family's design rules
  • terminu-go: the Go library boxu is built with
  • terminu-harness: the Claude Code plugin for building apps to terminu design

License

GPL-3.0

About

A terminal UI for Apple container, Docker, Podman, containerd and CRI-O — every container runtime in one screen: containers, images, networks and volumes in the same lists, logs side by side, every operation in the Space menu.

Topics

apple-containerapple-containerizationbubbleteaclicontainercontainerdcontainerscri-odevopsdockerdocker-composedocker-tuigokeyboard-drivenlinuxmacospodmanterminalterminal-uitui

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.