Skip to content

Baabacar/docker-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Helper 🐳

Docker Logo License: MIT Shell Script

An interactive command-line tool to simplify the management of your Docker resources.

💡 Why Docker Helper?

Born out of frustration with repetitive Docker tasks, this tool addresses:

  • Tedious searches for container/image IDs
  • Typing long Docker commands
  • Risk of errors during system cleanup
  • Wasting time on routine tasks

📋 Key Features

  • 📦 Intuitive Docker container management
  • 🗂️ Smart image cleanup
  • 💾 Volume organization
  • 🎯 Interactive interface with fzf
  • 🔄 Multi-distribution Linux compatibility

⚙️ Prerequisites

  • Docker Engine installed
  • fzf (automatic installation offered)
  • Supported Linux systems:
    • Debian/Ubuntu (apt)
    • RHEL/CentOS (yum/dnf)
    • Arch Linux (pacman)

⚙️ Installation

curl :

curl -fsSL https://raw.githubusercontent.com/Baabacar/docker-helpers/main/scripts/install.sh | sh

wget :

wget -qO- https://raw.githubusercontent.com/Baabacar/docker-helpers/main/scripts/install.sh | sh

🧹 Désinstallation / Uninstallation

curl :

curl -fsSL https://raw.githubusercontent.com/Baabacar/docker-helpers/main/scripts/uninstall.sh | sh

wget :

wget -qO- https://raw.githubusercontent.com/Baabacar/docker-helpers/main/scripts/uninstall.sh | sh

🚀 Manual Installation Guide

  1. Clone the project: bash git clone https://github.com/Baabacar/docker-helper.git cd docker-helper

  2. Configuration: bash chmod +x docker-helper.sh

📖 Usage Guide

Quick Start

./docker-helper.sh

Main Menu

Command Action
🗑️ Delete Manage/Delete Docker resources
🐳 Publish Images Push multiple Docker images at once to Docker Hub or any other OCI-compatible registry.
🚪 Exit Exit the program

Practical Examples

Container Cleanup

# Classic method
docker ps -a
docker rm -f $(docker ps -aq)

# With Docker Helper
./docker-helper.sh
# → 🗑️ Delete → 📦 Containers → Select → Enter

Image Management

# Classic method
docker images
docker rmi <image-id>

# With Docker Helper
./docker-helper.sh
# → 🗑️ Delete → 🗂️ Images → Select → Enter

🎯 Roadmap

Advanced Docker Compose support
Lightweight web interface
Real-time monitoring
Docker network management
Automation mode (batch)

🤝 Contribution

  1. Fork the project

  2. Create a branch bash git checkout -b feature/new-feature

  3. Commit bash git commit -m 'feat: clear description'

  4. Push bash git push origin feature/new-feature

Code Convention

# Typical function structure
function descriptive_name() {
        echo "🔄 Processing..."
        
        # Error handling
        if [[ $? -ne 0 ]]; then
                echo "❌ Error: Description"
                return 1
        fi
}

🌐 Language / Langue

For more details about the project, please read the README in your preferred language:

Pour plus de détails sur le projet, veuillez lire le README dans votre langue préférée :


👤 Authors

👥 Contributors

📄 License / Licence

This project is licensed under the MIT License. See the LICENSE file for details.

Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus d'informations.

💭 Quote

"Be curious and never stop searching!" - Babacar Ndiaye


⬆️ Back to top

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages