Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.1 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.1 KB

app-oci-registry

Application stack to host an OCI registry.

Getting started

Clone the repository and start the application using docker compose.

git clone https://github.com/redpencilio/app-oci-registry.git
cd app-oci-registry
docker compose up -d

How-to guides

How to configure the registry as mirror

The registry can be configured to act as a mirror/pull through cache for another registry.

Add the following at the bottom of the mounted config file in ./config/registry/config.yml

proxy:
  remoteurl: https://registry-1.docker.io

Next, restart the registry container

docker compose restart registry

Finally, configure your docker daemon to make use of the mirror by adding the following to /etc/docker/daemon.json

{
  "registry-mirrors": ["https://<my-docker-mirror-host>"]
}

Restart the docker service

sudo service docker restart