CLI_Docker_Manager
CLI_Docker_Manager is a bash-based command-line tool designed to simplify the management of Docker containers on Linux systems. It provides a user-friendly menu interface to handle common Docker Compose tasks without needing to remember complex commands.
Features
- Folder Management: Easily create new container directories in
/opt/containers/with optional subfolders (e.g.,data,config). - Compose Management: Edit or create
docker-compose.ymlfiles directly usingnano. - Container Control: Start, restart, and stop specific containers or all containers at once.
- Logs: View logs for specific containers with ease.
- Overview: List running containers and their status.
- Navigation: Quickly jump to the container directory using the
dwalias. - Caddyfile Editor: Quickly edit the Caddy configuration file (
/opt/containers/caddy-proxy/caddy/Caddyfile). - Authelia Watcher Manager: A specialized module to manage
lxtools/authelia-watcher, including:- Viewing active iptables bans.
- Manually unbanning IPs.
- Managing the whitelist (DynDNS/Static).
- Editing configuration.
- Localization: Supports English (default) and German.
Prerequisites
- Linux OS (Tested on Debian 12 | 13, Linux Mint 21.* | 22.*)
- Docker & Docker Compose installed.
sudoprivileges.gettext(for translations).
Installation
- Clone the repository or download the scripts.
- Make the installer executable:
chmod +x install.sh - Run the installer:
./install.sh
The installer will:
- Create aliases (
dm,clidmanager,dw) in your~/.bashrc. - Configure
sudoersto allow runningclidmanagerwithout a password. - Install translation files (
.mo). - Add the user to the
dockergroup if not already added.
Usage
Start the tool by typing:
dm
or
clidmanager
Menu Options
- Create new container folder: Sets up a directory structure in
/opt/containers/. - Edit/Create yml file: Opens the
docker-compose.ymlfor the selected container. - Start/Restart container: Runs
docker compose up -dfor the selected container. - View logs: Shows logs for the selected container.
- Stop all containers: Stops all running Docker containers.
- Start all containers: Starts all stopped Docker containers.
- Authelia Watcher Manager: Specialized tools for the Authelia Watcher service.
- Show running containers: Displays a table of currently running containers.
- Edit Caddyfile: Opens the Caddy configuration file in
nanofor editing.
Quick Navigation
Use the dw alias to quickly change your current directory to /opt/containers/:
dw
Localization
The tool automatically detects your system language.
- English: Default.
- German: Available if system locale is set to German.
Disclaimer
Use without warranty! This tool is provided as-is to help manage Docker environments.
⚖️ License
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for details.
Copyright (C) 2026 Désiré Werner Menrath
Languages
Shell
100%