question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

registry mirrors

See original GitHub issue

Summary

add the registry mirror with rewrite function

For example, k8s.gcr.io/pause:3.1 Redirect to registry.cn-hangzhou.aliyuncs.com/google_ containers/pause:3.1

Why is this important?

Because the network firewall, Google and other registries cannot be accessed, microk8s cannot be started normally.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
neoaggeloscommented, Sep 20, 2022

broken pipe: unknown

That is most interesting. Does a sudo snap restart microk8s help? If not, can you try the following and paste the output here?

microk8s ctr image pull k8s.gcr.io/pause:3.7 --hosts-dir /var/snap/microk8s/current/args/certs.d
microk8s ctr image pull registry.aliyuncs.com/google_containers/pause:3.7

Both commands should work. If not, append --http-dump to further investigate why the image pull is failing.

1reaction
neoaggeloscommented, Jun 29, 2022

The process of setting up a registry mirror is now documented in https://microk8s.io/docs/registry-private#configure-registry-mirrors-7. Closing the issue, please re-open if the documented steps are failing. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Registry as a pull through cache - Docker Documentation
The first time you request an image from your local registry mirror, it pulls the image from the public Docker registry and stores...
Read more >
Setting Up Docker Hub Pull Through Mirror - CircleCI
Set up a pull through cache registry. This section covers setting up a pull through cache registry, which works as a mirror and...
Read more >
Docker private registry with mirror - Stack Overflow
It's currently not possible to mirror another private registry. Only the central Hub can be mirrored. Share.
Read more >
Introducing Mirror Registry for Red Hat OpenShift
The mirror registry for Red Hat OpenShift is built on top of the Red Hat Quay technology. It deploys a small, minimal Quay...
Read more >
Pulling cached Docker Hub images - Google Cloud
Container Registry caches frequently-accessed public Docker Hub images on mirror.gcr.io . You can configure the Docker daemon to use a cached public image ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found