Application stack to host an OCI registry.
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
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