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.yml files directly using nano.
  • 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 dw alias.
  • 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.
  • sudo privileges.
  • gettext (for translations).

Installation

  1. Clone the repository or download the scripts.
  2. Make the installer executable:
    chmod +x install.sh
    
  3. Run the installer:
    ./install.sh
    

The installer will:

  • Create aliases (dm, clidmanager, dw) in your ~/.bashrc.
  • Configure sudoers to allow running clidmanager without a password.
  • Install translation files (.mo).
  • Add the user to the docker group if not already added.

Usage

Start the tool by typing:

dm

or

clidmanager

Menu Options

  1. Create new container folder: Sets up a directory structure in /opt/containers/.
  2. Edit/Create yml file: Opens the docker-compose.yml for the selected container.
  3. Start/Restart container: Runs docker compose up -d for the selected container.
  4. View logs: Shows logs for the selected container.
  5. Stop all containers: Stops all running Docker containers.
  6. Start all containers: Starts all stopped Docker containers.
  7. Authelia Watcher Manager: Specialized tools for the Authelia Watcher service.
  8. Show running containers: Displays a table of currently running containers.
  9. Edit Caddyfile: Opens the Caddy configuration file in nano for 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

Description
Easy handling of Docker containers
Readme GPL-3.0 146 KiB
Languages
Shell 100%