An attempt to make a linux GUI similar to OrbStack for docker/containers.
  • Rust 54.6%
  • QML 37.4%
  • Python 5.5%
  • Shell 2%
  • C++ 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeremy Knope 1da97a8007
All checks were successful
Release / package (linux/arm64) (push) Successful in 3m10s
Release / package (linux/amd64) (push) Successful in 3m42s
Release / release (push) Successful in 10s
CI / test (push) Successful in 5m32s
chore(release): v1.0.1
2026-12-02 14:06:46 -05:00
.cargo feat: basic listing of containers & a systray icon/menu 2026-01-23 12:31:14 -05:00
.forgejo ci: depend on Qt 6.8, which the build needs, and Qt DBus/Network 2026-11-28 20:14:30 -05:00
docs/screenshots feat: global search with Ctrl+K across containers, projects, volumes, images and networks 2026-11-30 15:42:59 -05:00
icon feat: Krane app & tray icons from a Blender model 2026-11-28 16:52:18 -05:00
packaging fix: use "Docker Frontend" as the subtitle everywhere 2026-11-30 19:10:10 -05:00
resources/icons feat: Krane app & tray icons from a Blender model 2026-11-28 16:52:18 -05:00
scripts feat: benchmark script comparing Krane with Docker Desktop 2026-12-01 17:08:06 -05:00
src feat: About window with version, engine and system info 2026-12-02 13:34:09 -05:00
ui/qml feat: About window with version, engine and system info 2026-12-02 13:34:09 -05:00
.gitignore feat: benchmark script comparing Krane with Docker Desktop 2026-12-01 17:08:06 -05:00
.qmlls.ini feat: basic UI & control 2026-11-28 14:25:19 -05:00
build.rs feat: About window with version, engine and system info 2026-12-02 13:34:09 -05:00
Cargo.lock chore(release): v1.0.1 2026-12-02 14:06:46 -05:00
Cargo.toml chore(release): v1.0.1 2026-12-02 14:06:46 -05:00
CHANGELOG.md chore(release): v1.0.1 2026-12-02 14:06:46 -05:00
cliff.toml ci: add CI checks, tag-triggered rpm/deb/tarball release and mise release task 2026-11-28 20:00:30 -05:00
mise.toml ci: add CI checks, tag-triggered rpm/deb/tarball release and mise release task 2026-11-28 20:00:30 -05:00
README.md feat: About window with version, engine and system info 2026-12-02 13:34:09 -05:00

Krane

A Docker desktop app for Linux in the spirit of OrbStack: a tray icon for quick start/stop, and a window for containers, compose projects, volumes, images and networks. Built with Rust, Qt 6 / QML and bollard.

Containers

Features

  • Search: Ctrl+K (or Search in the sidebar) finds containers, compose projects, volumes, images and networks by name, image, project, driver or tag, and jumps to the one you pick. "Show all" fills in that page's own search.
  • Containers: running and stopped containers, with compose projects grouped and collapsible. Start, stop, restart and delete a container or a whole project, open a shell in it, open its published ports in the browser. Details from docker inspect (status, image, command, network, mounts, compose info).
  • Stats: live CPU, memory, network and disk use on each running container's row and in a Stats tab with graphs of the last few minutes; compose projects show their totals and a per-service breakdown. Read from the engine's stats stream, only while the Containers page is on screen.
  • Logs: follow a container's logs, or a whole compose project's interleaved by time with each line labeled by service. Filter, timestamps, wrap and follow.
  • Files: browse a container's or a volume's files in a Files tab, preview text files, save a file or folder to your computer and copy paths. Works on containers with no shell (distroless, scratch), on stopped containers and on remote engines; running containers and volumes are read through a small busybox helper container that Krane removes when you leave the tab.
  • Debug shell: a shell with tools in any running container, even one with no shell of its own (distroless, scratch). It's in the container's right-click menu, and Open Terminal falls back to it when the image has no sh. A helper from a tools image (busybox:1.37; set "debugImage" in ~/.config/krane/settings.json, say to alpine for apk) shares the container's processes and network and starts in its files (/proc/1/root); the engine removes it when the shell exits.
  • Volumes: every volume with its size and the containers using it; details, labels and driver options. Create, delete, prune unused, copy name or mountpoint.
  • Images: every image with tags, size, age and the containers using it; platform, entrypoint, command, ports, environment and labels. Pull by name with layer progress, pull again to update a tag, delete and prune.
  • Networks: every network with its driver, subnet and the containers attached (with their addresses); IPAM config, driver options, labels and flags (internal, attachable). Create, delete, prune unused, copy name, ID or subnet. Docker's built-in bridge, host and none are listed last.
  • Open a project: open a compose project's folder in a terminal or a code editor from its Info tab or right-click menu (the file manager when no editor is found). Uses xdg-terminal-exec, $TERMINAL, x-terminal-emulator or a known terminal, and VS Code, VSCodium, Zed, Sublime Text or Kate; set your own with "terminal" and "editor" in ~/.config/krane/settings.json ({dir} stands for the folder). Hidden when the folder isn't on this machine.
  • Tray: running/stopped containers and projects with start, stop, restart and logs, right from the panel. Left click opens the window.
  • Start at login: in the tray menu and the window's settings menu (off by default). Writes an XDG autostart entry (~/.config/autostart/krane.desktop) that starts Krane in the tray only; deleting the file turns it off.
  • Notifications: a desktop notification when a container exits with an error, runs out of memory or turns unhealthy; click it for the container's logs. Stops you make (in Krane or with docker stop) stay quiet, and a restart loop notifies at most once a minute. Turn it off in the tray or settings menu.
  • Engines: switch between Docker contexts (docker context ls: local Docker, rootless Podman, remote engines over SSH or TLS) from the engine menu at the bottom of the sidebar. Krane remembers its choice without changing the docker CLI's current context; DOCKER_HOST, when set, wins as it does for the CLI. An engine that doesn't answer within 5 seconds shows as unreachable.
  • About: Krane's version, the engine, Qt and system it runs on, and Copy Info for bug reports; in the tray and settings menus.
  • Light on the engine: the container list follows the engine's events and the window's volume, image and network lists follow theirs. With the window hidden in the tray, Krane only listens for events and checks the container list once a minute.
  • Follows the desktop's light/dark scheme and accent color, and uses its icon theme (Breeze on KDE Plasma).
Project Stats Logs Pull Settings
Project Stats Logs Pull Settings
Volumes Images Networks Engines
Volumes Images Networks Engines
Files Volume files Search
Files Volume files Search
Light

Containers, light Project, light Stats, light Volumes, light Files, light Images, light Pull, light Settings, light Networks, light Engines, light Search, light

Building

You need Rust (stable), a C++ compiler, lld, Qt 6 development packages and a Docker engine to talk to.

Debian / Ubuntu:

sudo apt install build-essential lld qt6-base-dev qt6-declarative-dev qml6-module-qtquick-controls qml6-module-qtquick-layouts qml6-module-qtquick-shapes qml6-module-qtquick-dialogs

Fedora:

sudo dnf install gcc-c++ lld qt6-qtbase-devel qt6-qtdeclarative-devel

Arch:

sudo pacman -S base-devel lld qt6-base qt6-declarative

Then:

cargo build --release
./target/release/krane          # tray only; click the icon to open the window
./target/release/krane --show   # also open the window right away

If cargo can't find Qt, point it at qmake: QMAKE=/usr/bin/qmake6 cargo build.

Krane talks to the engine the way the docker CLI does: DOCKER_HOST if it's set, otherwise /var/run/docker.sock. Your user needs access to the socket (the docker group, or rootless Docker).

Options

--show Open the window at startup.
--mock Use built-in example data instead of a Docker engine. Actions do nothing. Also KRANE_MOCK=1. Needs a build with --features mock.
--screenshots <dir> With mock data, save each page (dark and light) as PNGs in <dir> and exit. Needs a build with --features mock.
KRANE_ICON_THEME Icon theme to use when the desktop doesn't provide one, e.g. breeze.

Screenshots

The screenshots above are generated from the mock data, so they never show anyone's real containers:

scripts/screenshots.sh            # writes docs/screenshots/*.png

It runs headless (Qt's offscreen platform, no Docker needed) and uses the Breeze icon theme (breeze-icon-theme on Debian/Ubuntu). SCALE=1 makes 1x images. The example data lives in src/mock.rs, which is only compiled in with the mock cargo feature; the script builds that variant into target/mock, so a normal cargo build never includes it. To try the mock data by hand:

cargo run --features mock -- --mock --show

Comparing with Docker Desktop

scripts/bench.py measures Krane on the host's Docker Engine against Docker Desktop for Linux on the same machine. Both run the same dockerd, but Docker Desktop runs it in a QEMU/KVM VM next to an Electron UI, so the differences are in memory, startup and anything that crosses the VM boundary:

cargo build --release
scripts/bench.py                                  # both, every phase (~10 min)
scripts/bench.py --targets krane --phases idle,loaded
scripts/bench.py --help                           # sizes, runs, contexts
Phase What it measures
startup Launch to the engine answering and to the window showing; host memory taken (MemAvailable before and after)
idle CPU and memory of the app and its engine, window open
loaded The same with 50 idle containers
workloads docker run --rm and docker exec latency, bind-mount write/read and small files, download from a published port, docker build

Each target runs with the other stopped: Docker Desktop is stopped while Krane is measured and started again at the end if it was running. Memory is PSS (root-owned processes need passwordless sudo, RSS otherwise). Docker Desktop's engine is its whole VM, containers included; on the native engine it's dockerd, containerd, docker-proxy and the benchmark's own containers, not any others you have running. Window timing needs a display and xdotool. Results go to bench-results/<time>/ as results.json and results.md.

Layout

Path What's there
src/docker.rs Docker calls (bollard): container list and actions, volume/image watcher and actions
src/pull.rs Image pulls: reference parsing and layer progress
src/autostart.rs Start at login (XDG autostart entry)
src/notify.rs Desktop notifications from container events (D-Bus)
src/debug_shell.rs Debug shells: a tools-image helper in a container's namespaces
src/files.rs Browsing container and volume files (archive API, helper container)
src/open_in.rs Opening a compose project's folder in a terminal, editor or file manager
src/settings.rs Krane's settings file (~/.config/krane/settings.json)
src/tray.rs Tray icon and menu (ksni, drawn by the desktop's tray host over DBusMenu)
src/window/ The cxx-qt bridge (bridge.rs), JSON shaping for QML (data.rs), log streaming (logs.rs)
src/mock.rs Example data for --mock and screenshots (mock feature only)
ui/qml/ The window's QML; every file has to be listed in build.rs
scripts/screenshots.sh Regenerates docs/screenshots
scripts/bench.py Benchmarks Krane against Docker Desktop for Linux