Chapter 7. Deploy a Docker Registry

Openshift provides an internal, integrated Docker registry that can be deployed to locally manage images. OpenShift uses the docker-registry to store, retrieve, and build Docker images, as well as deploy and manage them throughout their lifecycle.

From OpenShift 3.2 and onwards, the installer creates a default registry.

  1. Delete the default registry using the following command:

    oc delete all -l docker-registry=default
  2. Create the docker-registry service in the default project using the registry service account:

    $ oadm registry

The OpenShift documentation contains detailed information on docker registry.