I’ve published an article on the Google Cloud blog detailing how to write and deploy custom middleware (such as serverless-registry-proxy) to customize the behavior of gcr.io for tasks like serving a public Docker Registry on a custom domain name.