Hacker News new | ask | show | jobs
by firloop 237 days ago
I wasn't able to get this working, but I was able to use Google's mirror[0] just fine.

Just had to change

    FROM {image_name}
to

    FROM mirror.gcr.io/{image_name} 
Hope this helps!

[0]: https://cloud.google.com/artifact-registry/docs/pull-cached-...

1 comments

We tried this initially

  FROM mirror.gcr.io/{image_name}
We received

  failed to resolve source metadata for mirror.gcr.io/
So it looks like these services may not be true mirrors, and just functioning as a library proxy with a cache.

If you're image is not cached on one of these then you may be SOL.

During the last Docker Hub outage we found Google mirrors lost all image tags after a while. Image digest references would probably work