nauka नौका
Docker

nauka

नौका · “boat”

Docker in the terminal: containers, compose, images, volumes and networks, with what's attached to what.

अपि चेदसि पापेभ्यः सर्वेभ्यः पापकृत्तमः ।
सर्वं ज्ञानप्लवेनैव वृजिनं सन्तरिष्यसि ॥

Even if you were the worst of all wrongdoers, you would cross all that wrong on the raft of knowledge alone. Bhagavad Gītā 4.36
v0.2.0 latest3 releases1 decisions recordedMIT license

#nauka

Nauka (नौका) is Sanskrit for "boat": the boats your containers sail in.

Docker in the terminal: containers, compose projects, images, volumes, networks and disk use, with what's attached to what. Start, stop, open a shell, follow logs, bring a compose project up or down, prune, all from the keyboard.

nauka (नौका) is Sanskrit for a boat.

 Containers 4   Compose 1   Images 15   Volumes 6   Networks 4   System     nauka · docker 29.9.1 · 3 running
╭─ Containers · 3 running · 1 stopped ───────────╮╭─ onadssuper-postgres-1 ─────────────────────────╮
│    NAME          IMAGE              PORTS  CPU │ │ 1 Overview  2 Logs  3 Stats  4 Env  5 Inspect  │
│ ▌● postgres-1    pgvector/pgvector  54320  0.5%│ │ status   up 25h · healthy                      │
│  ● redis-1       redis:8.2-alpine   63790  0.5%│ │ compose  onadssuper / postgres                  │
│  ● mailpit-1     axllent/mailpit    8025   0.0%│ │ VOLUMES · 2                                    │
│  ○ aura-local    redis:7-alpine           exited│ │  󰋊 onadssuper_postgres-data → /var/lib/...     │
╰────────────────────────────────────────────────╯│ NETWORKS · 1                                   │
                                                  │  󰛳 onadssuper_default 172.18.0.4 · with redis-1 │
 containers  s start/stop  r restart  p pause  e shell  l logs  1-6 details  d remove  ? keys

nauka's Containers tab: the running containers with ports, CPU and uptime, and the selected one's overview: compose project, ports, image, networks, CPU and memory

The Compose tab: a project with its three services up and healthy

Screenshots use made-up demo data.

#Sections

Tab / Shift+Tab move between them. Each is a list on the left and the selected item's details on the right; Enter focuses the details, where Enter on a linked volume, network, image or container jumps to it in its own section, and Backspace comes back.

#Safe by default

Anything that deletes asks first and says what goes (a volume's size, the containers a down removes, how much a prune frees). A volume or image a container still uses isn't removed: nauka says which containers to remove first. Secrets in Env are hidden until you ask (Space u s).

#Keys

nauka uses the vim grammar every Vayu tool shares (vyakarana): in NORMAL, keys are commands and typing changes nothing; / starts INSERT to search (Esc goes back and keeps it). H / L switch sections, h / l move between the list and the details, dd removes (asks first; only y says yes). Space is the leader: press it and a box lists what can follow. Space c acts on a container, Space p on a compose project, Space i on an image, Space a creates, Space d removes or prunes, Space u toggles a view, Space y copies, Space t switches sections and details. Space Space searches every action, ? shows every key. Counts work (5j, 3gg).

Keys that moved say where they went for one release: on a container s → x, p → Space c p, e → Space c x, v → Space u s, c → Space y f; in Compose u → Space p u, p → Space p p, e → Space e c; on an image p → Space i p; on a volume f → Space o t, n → Space a v; on a network c → Space a c, x → Space d c, n → Space a n. r reloads now (restart is Space c r / Space p r, run an image Space i r), y copies the name (the compose file is Space u y), l focuses the details (logs are Space c l), H is the previous section (layers are Space u l). b (build) and P (prune) still work.

**Everywhere**
KeysWhat it does
j or DownMove to the next row
k or UpMove to the previous row
g g or HomeJump to the first row (5gg: the fifth)
G or EndJump to the last row (5G: the fifth)
Ctrl+d or PgDnScroll half a page down
Ctrl+u or PgUpScroll half a page up
/ or Space f fSearch the list (filters it)
r or Space rReload everything now (it also reloads every 2 s)
? or Space ?Show every key of this view
q or Space qQuit
EscGo back one step: clear the filter, then quit
L or TabSwitch to the next section (Containers, Compose, Images, Volumes, Networks, System)
H or Shift+TabSwitch to the previous section
lFocus the details pane
hFocus the list (leave the details pane)
EnterFocus the details pane; in it, jump to the volume, network or container under the cursor
Backspace or Ctrl+oGo back to where Enter jumped from (or up a folder in Files)
y or Space y nCopy the name of the selected row
Space SpaceSearch every action and run one (the palette)
Space tTabs…
Space t cSwitch to Containers
Space t pSwitch to Compose
Space t iSwitch to Images
Space t vSwitch to Volumes
Space t nSwitch to Networks
Space t sSwitch to System
Space yCopy…
Space y iCopy the ID of the selected row
While typing
EscStop typing and keep the search (back to NORMAL)
Ctrl+j or DownMove to the next row while typing
Ctrl+k or UpMove to the previous row while typing

Containers

KeysWhat it does
1 or Space t oSwitch the details to Overview
2 or Space t lSwitch the details to Logs
3 or Space t aSwitch the details to Stats
4 or Space t eSwitch the details to Env
5 or Space t jSwitch the details to Inspect (the JSON)
6 or Space t fSwitch the details to Files
x or Space c sStart or stop the container
o or Space o bOpen the container's published port in the browser
d d or Space d dRemove the container (asks first)
Space cContainer…
Space c rRestart the container
Space c pPause or unpause the container
Space c lFollow the container's logs full screen (Ctrl+c comes back)
Space c x or Space o tOpen a shell inside the container (bash, else sh)
Space uToggles…
Space u sToggle showing secret values in Env
Space yCopy…
Space y fCopy the selected file out of the container to ~/Downloads (Files)

Compose

KeysWhat it does
Space eEdit…
Space e cEdit the compose file in $EDITOR
Space pCompose project…
Space p uStart the compose project (docker compose up -d)
Space p d or d dStop and remove the compose project's containers (docker compose down; asks first)
Space p rRestart the compose project
Space p b or bBuild the compose project's images
Space p pPull the compose project's images
Space p lFollow the logs of every service of the project
Space uToggles…
Space u yToggle the details between the services and the compose file

Images

KeysWhat it does
d d or Space d dRemove the image (asks first)
Space dDelete…
Space d p or PRemove dangling images (docker image prune; asks first)
Space iImage…
Space i rRun a container from the image (asks for the options)
Space i pPull a newer copy of the image
Space uToggles…
Space u lToggle the image's layers (docker history)

Volumes

KeysWhat it does
d d or Space d dRemove the volume (asks first; not while a container uses it)
Space aAdd…
Space a vCreate a volume
Space dDelete…
Space d p or PRemove unused volumes (docker volume prune; asks first)
Space oOpen…
Space o tOpen a shell in the volume's files (a throwaway alpine container)

Networks

KeysWhat it does
d d or Space d dRemove the network (asks first)
Space aAdd…
Space a cConnect a container to the network
Space a nCreate a network
Space dDelete…
Space d cDisconnect a container from the network
Space d p or PRemove unused networks (docker network prune; asks first)

System

KeysWhat it does
Space dDelete…
Space d P or PRemove what you pick: stopped containers, images, volumes, networks, build cache, everything (asks first)

#Install

Needs Linux and the docker command (with the compose plugin for the Compose section), and access to the daemon (the docker group, or rootless Docker). nauka runs the docker command for everything, so it follows your docker context exactly.

curl -fsSL https://raw.githubusercontent.com/Theyashsawarkar/nauka/main/install.sh | bash

downloads the release binary (or builds it with Go) into ~/.local/share/nauka and links ~/.local/bin/nauka. Or make install (PREFIX, DESTDIR), or go install github.com/Theyashsawarkar/nauka/cmd/nauka@latest.

#As a tmux plugin

set -g @plugin 'Theyashsawarkar/nauka'

prefix D opens nauka in a popup; D inside closes it. Without nauka on your PATH, the plugin builds it with Go the first time.

OptionDefault
@nauka-keyDthe key after the prefix; none binds nothing
@nauka-width / @nauka-height90% / 88%popup size
@nauka-title nauka popup title
@nauka-launcheryour own popup command instead of display-popup; it gets display-popup's arguments (-E -d DIR -T TITLE CMD)

To open it from a status-line click, open a popup that runs ~/.tmux/plugins/nauka/scripts/nauka-run.

#Colours

nauka follows varna's desktop theme (~/.local/state/varna/palette.json, a tools.nauka pick if the theme has one) and changes live with it; without varna it is Catppuccin Mocha. Icons need a Nerd Font; NO_NERD_FONT=1 turns them off.

#License

MIT