Giter Club home page Giter Club logo

docker-registry-extensions's Introduction

OpenShift Docker Registry Extensions

This is the source repository for OpenShift's extensions to the Docker Registry.

Extensions

Tag Created

Notifies OpenShift about the new image (tag and metadata). Also automatically adds a tag that matches the image's ID, to support pull-by-id.

Dockerfile

Basis for a CentOS 7 Docker image that combines the Docker Registry with these OpenShift-specific extensions.

Running

To run the registry with the OpenShift extensions, you must at least specify the URL to the OpenShift API Server. The easiest way to do so is to specify the OPENSHIFT_URL environment variable when running the registry. For example:

docker run -e OPENSHIFT_URL=http://some.server/osapi/v1beta1 -p 5000:5000 openshift/docker-registry

Alternatively, you can edit the configuration file, modify the extensions.openshift.openshift_url setting, and run as follows:

docker run -e DOCKER_REGISTRY_CONFIG=/path/to/config/in/container \
           -v `pwd`/config_openshift.yml:/path/to/config/in/container \
           -p 5000:5000 \
           openshift/docker-registry

When the registry sends OpenShift information about a new image and tag, it also needs to tell OpenShift which registry it is. You must set the REGISTRY_URL environment variable appropriately. For example, if you were to tag your image as some.registry:5000/namespace/repo:latest, you would need to set REGISTRY_URL to some.registry:5000. If not set, it defaults to localhost:5000. This can be set in the same manner as OPENSHIFT_URL described above.

To specify a root certificate bundle to use when verifying the OpenShift certificate, set the OPENSHIFT_CA_BUNDLE environment variable or the extensions.openshift.openshift_ca_bundle setting.

To skip certificate validation when connecting to OpenShift, set the OPENSHIFT_INSECURE environment variable or the extensions.openshift.openshift_insecure setting.

To specify a client certificate to use when connecting to OpenShift, set the OPENSHIFT_CLIENT_CERT and OPENSHIFT_CLIENT_KEY environment variables, or the extensions.openshift.openshift_client_cert and extensions.openshift.openshift_client_key settings.

More information on the other configuration options is available on the Docker Registry page.

License

The files in this repository are licensed under the Apache License, Version 2.0.

docker-registry-extensions's People

Contributors

liggitt avatar smarterclayton avatar

Watchers

 avatar  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.