How can i make docker to pull image from another host machine’s local repository?

Please refer this link:

Caching Docker Images

I have installed a local registry on Machine A, and it caches all the images I pull on Machine A.

Now, I am trying to pull some images on Machine B using Machine B’s local repo. I cannot achieve it.

Machine A and B are on same network.

The ways I have tried.

  1. Set up proxy configuration on Machine B and tried to route it.
  2. Added the registry-mirrors set to remote machines local registry.

Nothing was fruitful. I am looking for help to achieve it.

Source: StackOverflow