'How to build local docker image registry mirror?

I wish to pull the image: gcr.io/google-containers/busybox in a local environment Is there a way to build a local mirror that after some config operation in /etc/docker/daemon.json, then I can pull the image with the url "gcr.io/google-containers/busybox:latest" instead of "mirror-host:5000/busybox:latest"?

I tried this: https://docs.docker.com/registry/recipes/mirror/ but I should use the url like "mirror-host:5000/busybox:latest", which is not What I want



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source