Skip to main content

A smart, caching proxy for Docker, designed to bypass registry restrictions and accelerate image pulls.

Project description

MirrorBox 🚀

A smart, caching proxy for Docker, designed to bypass registry restrictions and accelerate your image pulls.

MirrorBox is a modern command-line tool that acts as a smart gateway for Docker. It intelligently routes your Docker image requests through the fastest available mirrors, caches images locally for offline access, and seamlessly integrates with your development workflow.


✨ Key Features

  • Accelerated Image Pulls: Automatically benchmarks and selects the fastest, most reliable mirror before every download, dramatically speeding up docker pull.
  • Seamless Docker Compose Integration: Replace docker-compose up with mirrorbox compose up. MirrorBox pre-fetches all required images for your services, ensuring your projects start without delay.
  • Intelligent Local Caching: Pulled images are automatically cached locally. Subsequent requests are served instantly from your disk, saving bandwidth and enabling offline work.
  • Full Cache Management: Simple commands to list, save, and remove cached images.
  • Configuration Control: Customize MirrorBox. Set a priority_mirror to always use your favorite registry first.
  • Complete Docker Integration: List all images currently in your Docker daemon with list-images.
  • Live Monitoring & Reporting: Get a live dashboard of mirror statuses with monitor start and review performance history with report show.

📦 Installation & Quick Start

MirrorBox requires Python 3.10+.
It is strongly recommended to install it inside a virtual environment to avoid conflicts with system packages.

1️⃣ Create a Virtual Environment

python3 -m venv venv

2️⃣ Activate the Environment

source venv/bin/activate (Linux)
venv\Scripts\activate.bat (Windonws)

3️⃣ Install MirrorBox

pip install --upgrade mirrorbox

🛠️ Usage / Commands

mirrorbox start

✨ New in v1.0: The Graphical User Interface!

For a more visual and user-friendly experience, you can now launch the MirrorBox desktop application.

Simply run:

mirrorbox open

The GUI allows you to manage all key features of MirrorBox from a beautiful and modern interface.

MirrorBox GUI


Below is a detailed guide to available commands:

1. Basic Mirror & Image Commands

Check Mirror Status

mirrorbox list-mirrors

Search for an Image

mirrorbox search nginx:latest

Pull an Image (Smart Pull)

mirrorbox pull ubuntu:22.04

List Local Docker Images

mirrorbox list-images

2. Docker Compose Integration

mirrorbox compose up -d --build

3. Cache Management

List Cached Images

mirrorbox cache list

Save an Image to Cache

mirrorbox cache save httpd:latest

Remove Cached Images

mirrorbox cache remove httpd-latest.tar nginx-latest.tar

4. Configuration

View Current Settings

mirrorbox config show

Set a Priority Mirror

mirrorbox config set-priority focker.ir

Unset Priority Mirror

mirrorbox config unset-priority

5. Monitoring & Reporting

Show History Report

mirrorbox report show --limit 15

Launch Live Dashboard

mirrorbox monitor start --interval 5

📄 License

Copyright (c) 2025 Pouya Rezapour. All Rights Reserved. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirrorbox-2.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mirrorbox-2.0.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file mirrorbox-2.0.0.tar.gz.

File metadata

  • Download URL: mirrorbox-2.0.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mirrorbox-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8d7bb4e525797deb0e6e8606e6be9842ca104ca146a09dde464f1c78574c4bf7
MD5 df03bed25dfc072cc80feaf0036fddfb
BLAKE2b-256 cde49c866be15b43451fabe2e6c6fc0f429bf2a3526d5861d5ad6d7065c4419b

See more details on using hashes here.

File details

Details for the file mirrorbox-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mirrorbox-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mirrorbox-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05babc6925be150e3ad4514a4c33186d33ee230d67cf8cb7824d50862eb0940a
MD5 977afb99c1803b6f13634740359ff394
BLAKE2b-256 ae2d2ef05da96007242a5b6bcca1ee9f266f9695bae69f5ee8f25015ce40608a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page