A simple tui to view & control docker containers
Built in Rust, making heavy use of tui-rs & Bollard
Now published on crates.io, so if you have cargo installed, simply run
cargo install oxker
else see the pre-built binaries
or, download & install (x86_64 one liner)
bash
wget https://www.github.com/mrjackwills/oxker/releases/latest/download/oxker_linux_x86_64.tar.gz &&
tar xzvf oxker_linux_x86_64.tar.gz oxker &&
install -Dm 755 oxker -t "${HOME}/.local/bin" &&
rm oxker_linux_x86_64.tar.gz oxker
oxker
In application controls
| button| result|
|--|--|
| ( tab )
or ( shift+tab )
| Change panel, clicking on a panel also changes the selected panel|
| ( ↑ ↓ )
or ( j k )
or (PgUp PgDown)
or (Home End)
| Change selected line in selected panel, mouse scroll also changes selected line |
| ( enter )
| execute selected docker command|
| ( 1-9 )
| sort containers by heading, clicking on headings also sorts the selected column |
| ( 0 )
| stop sorting |
| ( h )
| Show help menu |
| ( m )
| toggle mouse capture - if disabled, text on screen can be selected|
| ( q )
| to quit at any time |
Available command line arguments
| argument|result|
|--|--|
|-d [number > 0]
| set the minimum update interval for docker information, in ms, defaults to 1000 (1 second) |
|-r
| Show raw logs, by default oxker will remove ANSI formatting (conflicts with -c) |
|-c
| Attempt to color the logs (conflicts with -r) |
|-t
| Remove timestamps from each log entry |
|-g
| No tui, basically a pointless debugging mode, for now |
cargo build --release
requires docker & cross-rs
cross build --target aarch64-unknown-linux-gnu --release
Tested, and fully working on pi zero w, running Raspberry Pi OS 32 bit, the initial logs parsing can take an extended period of time if thousands of lines long, suggest running with a -d argument of 5000
cross build --target arm-unknown-linux-musleabihf --release
If no memory information available, try appending /boot/cmdline.txt
with
cgroup_enable=cpuset cgroup_enable=memory
see https://forums.raspberrypi.com/viewtopic.php?t=203128 and https://github.com/docker/for-linux/issues/1112
As of yet untested, needs work
cargo test -- --test-threads=1
Run some example docker images
using docker-compose.yml;
docker compose -f docker-compose.yml up -d
or individually
docker run --name redis -d redis:alpine3.16
docker run --name postgres -e POSTGRES_PASSWORD=never_use_this_password_in_production -d postgres:alpine3.16
docker run -d --hostname my-rabbit --name rabbitmq rabbitmq:3