A comprehensive Docker container management tool with an intuitive interface featuring shell access, log viewing, stats monitoring, port mappings, favorites, and much more.
- Interactive Shell Access - Connect to containers with automatic shell detection (bash/sh/zsh/ash)
- Live Log Viewing - Follow logs with timestamps and configurable tail length
- Real-time Stats - Monitor CPU, memory, and network usage
- Container Information - Detailed container inspection and port mappings
- Favorites System - Mark frequently used containers for quick access
- Command History - Track your recent container interactions
- Dynamic Tables - Responsive column widths that adapt to your container names
- Partial Name Matching - Type partial names to quickly find containers
- Detailed/Simple Views - Toggle between compact and comprehensive displays
- Container Management - Restart containers directly from the interface
List all running containers with an interactive selection menu:
dcon
Interactive Commands:
[1-9]
or[container-name]
- Select containerd
- Toggle advanced view (shows IP, uptime, ports, favorites)f
- Show only favorite containersh
- View command historyq
- Quit
Connect directly to a specific container (supports partial matching):
dcon web-server
dcon web # Matches containers with "web" in the name
Once you select a container, you can:
- Execute Shell - Interactive bash/sh session
- Show Logs (Live) -
tail -f
with timestamps - Show Stats - Real-time CPU/memory monitoring
- Container Info - Detailed inspection data
- Port Mappings - View all port configurations
- Restart Container - Restart the selected container
- Manage Favorites - Add/remove from favorites
- Show Logs (Static) - View logs without following
Simple View:
+-----+------------------+
| Nr. | Container Name |
+-----+------------------+
| 1 | web-server |
| 2 | database |
+-----+------------------+
Quick commands:
[1-9] | [name] Select container | 'd' Toggle advanced view | 'f' Show favorites
'h' Show history | 'q' Quit | Partial names supported (e.g., 'web' matches 'web-server')
Advanced View:
+-----+------------------+-----------------+--------+------------+---+
| Nr. | Container Name | IP Address | Uptime | Ports | * |
+-----+------------------+-----------------+--------+------------+---+
| 1 | web-server | 172.17.0.2 | 2d | 80→8080 | |
| 2 | database | 172.17.0.3 | 5h | N/A | * |
+-----+------------------+-----------------+--------+------------+---+
- Download and install directly:
curl -JLO https://raw.githubusercontent.com/disisto/docker-container-manager/main/docker-container-manager.sh
chmod +x docker-container-manager.sh
sudo mv docker-container-manager.sh /usr/local/bin/dcon
- Use from anywhere:
dcon
dcon nginx
dcon web
- Place the script in your home directory:
mv docker-container-manager.sh ~/.docker-container-manager.sh
- Add alias to your shell configuration:
# For bash users
echo 'alias dcon="$HOME/.docker-container-manager.sh"' >> ~/.bashrc
source ~/.bashrc
# For zsh users
echo 'alias dcon="$HOME/.docker-container-manager.sh"' >> ~/.zshrc
source ~/.zshrc
- Use the command:
dcon
dcon web-server
# Install dependencies
sudo apt update && sudo apt install curl
# Download and install
curl -JLO https://raw.githubusercontent.com/disisto/docker-container-manager/main/docker-container-manager.sh
chmod +x docker-container-manager.sh
# Global installation
sudo mv docker-container-manager.sh /usr/local/bin/dcon
# Test installation
dcon --help
dcon
The tool automatically creates configuration files in ~/.docker-selector/
:
favorites
- Your favorite containershistory
- Recent command historyconfig
- Tool settings (theme, log lines, etc.)
- Add containers to favorites with action menu option 7
- View only favorites with
f
command - Favorites are marked with
*
in the table
- All actions are automatically logged with timestamps
- View recent activity with
h
command - Tracks exec, logs, stats, info, ports, and restart actions
- Table columns automatically resize based on content
- Container names up to 50 characters fully displayed
- IP addresses and ports get optimal column width
- ASCII-compatible borders work in all terminals
- Exact name matching:
dcon web-server
- Partial matching:
dcon web
(finds web-server, web-app, etc.) - Multiple partial matches show selection menu
- Case-sensitive matching for precision
- Docker - Must be installed and running
- Bash - Version 4.0+ recommended
- Terminal - Any standard terminal with ASCII support
- Use
d
to toggle advanced view for more container information - Partial names work great:
dcon db
instead ofdcon production-database-v2
- Add frequently used containers to favorites for quick access
- Use
h
to see what you've been working on recently - The tool remembers your last view preference (simple/advanced)
Complete Docker container management in one powerful tool! 🚀