{"id":29690888,"url":"https://github.com/mel-cell/docktop","last_synced_at":"2026-04-11T11:03:26.811Z","repository":{"id":297850651,"uuid":"998093329","full_name":"mel-cell/docktop","owner":"mel-cell","description":"DockTop is a modern, feature-rich terminal user interface for managing Docker containers. Built with Rust and Ratatui, it provides real-time monitoring, interactive wizards, and a beautiful interface inspired by btop.","archived":false,"fork":false,"pushed_at":"2025-12-27T11:23:28.000Z","size":7877,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T05:00:48.369Z","etag":null,"topics":["apache","container","devops","docker","linux","management-server","management-system","mysql","nginx","postgresql","redux","rust","shell"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mel-cell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-07T21:09:08.000Z","updated_at":"2025-12-28T13:11:01.000Z","dependencies_parsed_at":"2025-06-07T22:29:20.946Z","dependency_job_id":"90c624c4-bec9-4295-bdf7-30273de77eaf","html_url":"https://github.com/mel-cell/docktop","commit_stats":null,"previous_names":["mel-cell/dev80-server","mel-cell/run-server"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mel-cell/docktop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mel-cell%2Fdocktop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mel-cell%2Fdocktop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mel-cell%2Fdocktop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mel-cell%2Fdocktop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mel-cell","download_url":"https://codeload.github.com/mel-cell/docktop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mel-cell%2Fdocktop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","container","devops","docker","linux","management-server","management-system","mysql","nginx","postgresql","redux","rust","shell"],"created_at":"2025-07-23T07:00:44.735Z","updated_at":"2026-04-11T11:03:26.806Z","avatar_url":"https://github.com/mel-cell.png","language":"Batchfile","readme":"# DockTop 🐳\n\n\u003cdiv align=\"center\"\u003e\n\n![DockTop Interface](image.png)\n\n**A beautiful, interactive TUI (Terminal User Interface) for Docker container management**\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![Rust](https://img.shields.io/badge/rust-1.70%2B-orange.svg)](https://www.rust-lang.org/)\n[![Docker](https://img.shields.io/badge/docker-required-blue.svg)](https://www.docker.com/)\n\n\u003c/div\u003e\n\n---\n\nDockTop is a modern, feature-rich terminal user interface for managing Docker containers. Built with Rust and Ratatui, it provides real-time monitoring, interactive wizards, and a beautiful interface inspired by btop.\n\n### ✨ Key Features\n\n- 🎨 **Beautiful UI** - Btop-inspired design with customizable themes\n- 📊 **Real-time Monitoring** - Live CPU, memory, and network statistics\n- 🔄 **Container Management** - Start, stop, restart, and remove containers\n- 🐠 **Animated Background** - Relaxing fish tank animation\n- 🌍 **ASCII Globe** - Rotating Earth animation in the tools sidebar\n- 🧙 **Interactive Wizards** - Step-by-step guides for:\n  - Quick Pull \u0026 Run containers\n  - Build from Dockerfile\n  - Docker Compose generation\n- 🧹 **Janitor** - Clean up unused containers, images, and volumes\n- ⚙️ **Settings System** - Configure theme, refresh rate, and behavior directly in the app\n- ⚡ **Eco Mode** - Adaptive refresh rate to save CPU when idle\n- 📝 **Live Logs** - Real-time container log streaming\n- 🎯 **Resource Allocation** - Smart resource management for databases\n- 🎨 **Theme Support** - Load custom btop-style themes\n\n---\n\n## 🚀 Installation\n\n### Prerequisites\n\n- **Docker** - Required for container management\n- **Rust** (optional) - Will be installed automatically if missing\n\n### Quick Install\n\nClone the repository and run the installation script:\n\n```bash\ngit clone https://github.com/mel-cell/docktop.git\ncd docktop\nchmod +x install.sh\n./install.sh\n```\n\nThe installation script will:\n\n1. ✅ Check for Rust and install it if needed\n2. ✅ Check for Docker (warns if missing)\n3. ✅ Build the project in release mode\n4. ✅ Install the binary to `/usr/local/bin/docktop`\n\n### Manual Installation\n\nIf you prefer to install manually:\n\n```bash\n# Build the project\ncargo build --release\n\n# Copy the binary to your PATH\nsudo cp target/release/docktop /usr/local/bin/docktop\n\n# Or install to user directory\ncp target/release/docktop ~/.cargo/bin/docktop\n```\n\n---\n\n## 🎮 Usage\n\nSimply run `docktop` from anywhere in your terminal:\n\n```bash\ndocktop\n```\n\n### Keyboard Shortcuts\n\n#### Navigation\n\n- `↑/↓` or `j/k` - Navigate containers\n- `Tab` - Switch between sections / Open Tools Menu\n- `?` - Open Help / Shortcuts Menu\n- `q` or `Ctrl+C` - Quit application\n\n#### Container Actions\n\n- `Enter` - View container details\n- `s` - Start container\n- `t` - Stop container\n- `r` - Restart container\n- `d` - Remove container\n- `y` - Edit container config (YAML)\n- `l` - View logs\n- `F5` - Force refresh container list\n\n#### Tools \u0026 Wizards\n\n- `Tab` - Open wizard menu\n- `Esc` - Cancel/Go back\n- `Enter` - Confirm selection\n- `Ctrl+A` - Toggle Advanced Options (in Wizard)\n- `Space` - Cycle options (e.g., Restart Policy in Wizard)\n\n---\n\n## 🔄 Self-Update\n\nDockTop comes with a built-in self-update mechanism. To update to the latest version:\n\n```bash\ndocktop update\n```\n\nThis command will check for the latest release on GitHub, download the binary, and replace the current installation.\n\n---\n\n## ⚙️ Configuration\n\n### Settings UI\n\nYou can configure DockTop directly within the application:\n\n1. Press `Tab` to open the Tools menu.\n2. Select **Settings**.\n3. Use `Up/Down` to navigate and `Left/Right` to change values.\n4. Press `S` to save or `Esc` to cancel.\n\n### Configuration File\n\nDockTop stores configuration in `config.toml` (in the current directory or `~/.config/docktop/config.toml`):\n\n```toml\n# DockTop Configuration\ntheme = \"monochrome\"\nshow_braille = true\nrefresh_rate_ms = 1000\nconfirm_before_delete = true\ndefault_socket = \"unix:///var/run/docker.sock\"\n```\n\n### Theme Customization\n\nDockTop supports btop-style themes. Create or modify theme files in the `themes/` directory:\n\n```bash\nthemes/\n├── monochrome.theme\n├── dracula.theme\n├── matrix.theme\n└── custom.theme\n```\n\n#### Theme File Format\n\n```ini\n# Theme colors\ntheme[main_bg]=\"#00\"\ntheme[main_fg]=\"#cc\"\n# ... (standard btop theme format)\n```\n\n---\n\n## 🧙 Wizards \u0026 Tools\n\n### Quick Pull \u0026 Run\n\nQuickly pull and run containers from Docker Hub:\n\n1. Press `Tab` to open the wizard menu\n2. Select \"Quick Pull \u0026 Run\"\n3. Enter image name (e.g., `nginx:latest`)\n4. Configure ports, environment variables, and resources\n5. Press Enter to launch\n\n### Build from Dockerfile\n\nBuild and run from local Dockerfile:\n\n1. Press `Tab` to open the wizard menu\n2. Select \"Build from Source\"\n3. Browse to your project directory\n4. DockTop will auto-detect the framework (Node.js, Python, Go, etc.)\n5. Configure build settings and run\n\n### Docker Compose Generator\n\nGenerate production-ready docker-compose.yml files:\n\n1. Press `Tab` to open the wizard menu\n2. Select \"Docker Compose\"\n3. Choose your services (databases, caches, etc.)\n4. DockTop automatically calculates optimal resource allocation\n5. Review and save the generated compose file\n\n### Janitor\n\nClean up unused resources:\n\n1. Press `Tab` to open the wizard menu\n2. Select \"Janitor\"\n3. Scan for dangling images, stopped containers, and unused volumes\n4. Select items to clean and confirm\n\n---\n\n## 🎨 Features in Detail\n\n### Real-time Monitoring\n\n- **CPU Usage** - Per-container CPU utilization with history graphs\n- **Memory** - RAM usage with detailed breakdowns\n- **Network** - RX/TX bandwidth monitoring\n- **Disk I/O** - Read/write statistics\n\n### Container Details\n\nView comprehensive information about each container:\n\n- Container ID and Name\n- Image and Tag\n- Status and Uptime\n- Port Mappings\n- Environment Variables\n- Volume Mounts\n- Network Configuration\n\n### Log Streaming\n\nReal-time log viewing with:\n\n- Auto-scroll\n- Color-coded output\n- Search and filter (coming soon)\n- Export logs (coming soon)\n\n---\n\n## 🛠️ Development\n\n### Building from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/docktop.git\ncd docktop\n\n# Build in debug mode\ncargo build\n\n# Run in development\ncargo run\n\n# Build optimized release\ncargo build --release\n```\n\n### Project Structure\n\n```\ndocktop/\n├── src/\n│   ├── main.rs          # Entry point\n│   ├── app.rs           # Application state and logic\n│   ├── ui.rs            # UI rendering\n│   ├── docker.rs        # Docker API integration\n│   └── theme.rs         # Theme parsing and management\n├── assets/\n│   └── earthAnimation.bat  # ASCII globe animation\n├── themes/              # Theme files\n├── install.sh           # Installation script\n└── Cargo.toml          # Dependencies\n```\n\n### Dependencies\n\n- **tokio** - Async runtime\n- **ratatui** - TUI framework\n- **crossterm** - Terminal manipulation\n- **bollard** - Docker API client\n- **serde** - Serialization\n- **sysinfo** - System information\n- **chrono** - Date/time handling\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n---\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## 🙏 Acknowledgments\n\n- Inspired by [btop](https://github.com/aristocratos/btop) for the beautiful design\n- Built with [Ratatui](https://github.com/ratatui-org/ratatui)\n- Docker integration via [Bollard](https://github.com/fussybeaver/bollard)\n\n---\n\n## 📧 Contact\n\nFor questions, suggestions, or issues, please open an issue on GitHub.\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ and 🦀 Rust**\n\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmel-cell%2Fdocktop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmel-cell%2Fdocktop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmel-cell%2Fdocktop/lists"}