Skip to content

Latest commit

 

History

History
76 lines (49 loc) · 1.4 KB

File metadata and controls

76 lines (49 loc) · 1.4 KB

🐳 Docker TUI (Terminal UI) in Go

A minimal terminal-based UI to manage and inspect Docker containers — written in pure Go using tview and the Docker SDK.

🚀 Features

  • View all Docker containers (running, exited, etc.)

  • See:

    • Name, Image, State, Status, Ports
    • Full container details (docker inspect)
    • Last 5 logs of each container
  • Refresh container list with one key

  • Works entirely in the terminal (no mouse required)


📦 Requirements

  • Go 1.18+
  • Docker daemon running (locally or remote via DOCKER_HOST)
  • Git (for dependency fetching)

🔧 Installation

Clone the repo and run:

go mod tidy
go run .

Or build it:

go build -o docker-tui
./docker-tui

🎮 Controls

Key Action
↑ / ↓ Navigate container list
Enter Show container details and logs
r Refresh container list
q / Esc Quit the app

🧪 Example

docker run -d --name my-nginx -p 8080:80 nginx
go run .

You'll see my-nginx in the list, with ports, uptime, logs, and more.


📚 Dependencies


📝 License

MIT — use freely.