Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Pavdig/dtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Docker Tool Suite (dtools)

A Bash script with a Text User Interface (TUI) to simplify managing Docker Compose applications, backups, and updates on Linux servers.

πŸš€ Features

  • App Management: Start, stop, restart, and force recreate containers. Includes an update checker to only recreate changed images.
  • Backups: Auto-detects and backs up volumes for specific apps or standalone volumes. Supports zstd compression and AES-256 encrypted 7-Zip archives using a secure local key.
  • Automation: Built-in scheduler (Cron) for automatic compose apps updates and unused images.
  • Maintenance: View logs, inspect image healthchecks, prune system, and manage local image history for rollbacks.
  • Safety: Includes "Dry Run" modes and validates configuration inputs (paths, integers) to prevent errors.

πŸ› οΈ Installation

  1. Clone the repo:

    git clone https://github.com/Pavdig/dtools.git
    cd dtools
  2. Make executable:

    chmod +x docker_tool_suite.sh
  3. Run:

    ./docker_tool_suite.sh

    The script will auto-install dependencies (openssl, 7zip) and guide you through the initial setup wizard.

πŸ“– Usage

Interactive Mode: Run with sudo to access the menu:

sudo ./docker_tool_suite.sh
# or if you set up the default alias:
dtools

CLI (Cron) Mode:

# Update all apps
sudo ./docker_tool_suite.sh update --cron

# Clean unused images
sudo ./docker_tool_suite.sh update-unused --cron

πŸ“‚ Configuration

Settings are stored in ~/.config/dtools/config.conf. You can change paths, retention policies, and helper images directly inside the script via Settings Manager in the main menu.