How does docker directly build a registry to share the pulled image?

  docker, question

The online tutorial is to build a private warehouse and then push, but then there will be two data. I don’t want to push. how can doc directly build a registry to share the pulled image?

Docker warehouse management is similar to code base, others can only obtain the mirror image in the warehouse, and cannot directly access your local mirror image. Therefore, your demand cannot be realized by building a private warehouse.
If you want to share the image directly, you can try to share it through Dockerfile or export the image directly.