Test caching using the commands as follows:
When my mirror is working, pull an image that I have not yet pulled out (using from time to time)
Pulls from a docker hub configured as MIRROR_SOURCE
$ time docker pull busybox:latest
Delete image from local computer
$ docker rmi busybox:latest
Finally, this should drag the image from the cache, which does not work in my case, instead of pulling the dockers from the hub.
$ time docker pull busybox:latest
I also tried to look at the volume folder of mounted images in my host file system, could not find it.
$ ls /opt/docker-registry/local/images/docker/registry/v2/repositories/
I tried redirecting the api call to this new image, instead it returns an error message:
$ curl http://localhost:5000/v2/busybox/tags/list {"errors":[{"code":"NAME_UNKNOWN","message":"repository name not known to registry","detail":{"name":"busybox"}}]}