Clone images to personal registry.
627
š³ Mirror manager for Docker registries with web interface
Docker Image Cloner is an automatic synchronization tool that maintains a local mirror of your favorite Docker images. It monitors configured repositories and automatically synchronizes the most recent tags to your private registry.
| Variable | Default | Description |
|---|---|---|
TARGET_REGISTRY | registry.example.com | Target Docker registry for synchronization |
MAX_TAGS | 5 | Maximum number of recent tags to synchronize per image |
SYNC_INTERVAL_HOURS | 6 | Interval between automatic synchronizations (in hours) |
FLASK_PORT | 5000 | Web interface port |
DATA_DIR | /app/data | Directory for data persistence |
SECRET_KEY | (auto) | Flask secret key (automatically generated) |
services:
docker-cloner:
image: waazaafr/docker-image-cloner:latest
container_name: docker-image-cloner
restart: unless-stopped
ports:
- "5000:5000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $HOME/.docker/config.json:/root/.docker/config.json
- ./data:/app/data
environment:
- TARGET_REGISTRY=registry.example.com
- MAX_TAGS=5
- SYNC_INTERVAL_HOURS=6
- FLASK_PORT=5000
Starting:
docker compose up -d
docker run -d \
--name docker-image-cloner \
-p 5000:5000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $HOME/.docker/config.json:/root/.docker/config.json \
-v $(pwd)/data:/app/data \
-e TARGET_REGISTRY=registry.example.com \
-e MAX_TAGS=5 \
-e SYNC_INTERVAL_HOURS=6 \
waazaafr/docker-image-cloner:latest
http://localhost:5000
TARGET_REGISTRY/image-name:taglinuxserver/jellyfin ā registry.example.com/jellyfin:latestMAX_TAGS)SYNC_INTERVAL_HOURS)repositories.yaml in /app/data contains monitored repos + last update dates.
docker login registry.example.com
docker logs -f docker-image-cloner
Docker daemon error:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock alpine ls -la /var/run/docker.sock
Auth error:
docker login registry.example.com
MIT License
waazaa
Made with ā¤ļø for Docker community
================================================================
Discord: https://discord.gg/p9xkjEw8tsā
Buy me coffee:
Content type
Image
Digest
sha256:d9a929adfā¦
Size
60.7 MB
Last updated
5 months ago
docker pull waazaafr/docker-image-cloner