Reroute of private registry

Hi guys, I am new in docker. I just want to ask if it is possible to create a private registry that if the registry doesn’t have the image it will automatically pull to the docker hub. For example i create a registry 192.168.1.20:5000. If user pull to that registry and the image will not found it re route to the hub then it make copy of the image to that registry. I seen some architecture doing like this but doesn’t found any tutorial to do it. Could you help me with this problem? Thanks in advance