Giter VIP home page Giter VIP logo

docker-registry-to-registry-sync's Introduction

docker-registry-to-registry-sync

Tool for syncing docker images from one registry to another

Goal

Make is possible to sync all tags of a number of docker repositories from one registry to another. Can be useful if you have an interal docker registry but want to sync a subset of the docker images to a globally accessibly registry.

Usage

Configuration

Create a config.yml file. Example:

source_registry:
  url: https://docker.example.com
  username: some_user
  password: some_password

destination_registry:
  url: http://127.0.0.1:5000

repositories:
  - company/super-project
  - company/cool-project

The meaning of the settings:

  • source-registry: The registry to sync from
  • destination-registry: The registry to sync to
  • repositories: A list of docker repositores, consisting of the repository name and image name (without the registry part).

When the images are synced, the registry part of the tag is replaced, e.g. in the example above the tag docker.example.com/company/super-project is re-tagged as 127.0.0.1:5000/company/super-project and pushed to 127.0.0.1:5000.

Passwords as environment variables

You can specify the registry passwords using the SOURCE_REGISTRY_PASSWORD and DESTINATION_REGISTRY_PASSWORD environment variables instead of including them in the config.yml file.

Running via Docker:

docker run --rm -it \
    -v $(pwd)/config.yml:/config.yml \
    stefanhudelmaier/docker-registry-to-registry-sync

When using environment variables for the passwords:

docker run --rm -it \
    -e SOURCE_REGISTRY_PASSWORD=secret \
    -e DESTINATION_REGISTRY_PASSWORD=secret \
    -v $(pwd)/config.yml:/config.yml \
    stefanhudelmaier/docker-registry-to-registry-sync

See Image on Docker Hub

Known limitations

docker-registry-to-registry-sync's People

Contributors

stefan-hudelmaier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.