System Version：CentOS 7.6 X86
Create a repository，Format is docker，Type is proxy.
The newly created repository does not have any docker images, the client host pulls the image in the Nexus docker warehouse through the docker pull command, Nexus docker repository accurate configuration proxy docker hub Url address，Nexus gets the docker image through the proxy and caches it in the Nexus docker proxy repository,The client pulls the mirror successfully.
Something incredible is coming.
The client cleans up all images fetched from the Nexus docker proxy repository,Change the URL value in “Remote Storage” in the Nexus docker proxy repository to a value that cannot be accessed normally,My actual practice is to manually modify the “/etc/hosts” file in the local linux system with the domain name configured by “Remote Storage”, and point the valid domain name of the source to the unreachable IP address.
After some time, I execute docker pull command from client,Get the cached docker image from the nexus docker agent repository,Failed to get image.
docker error info"error pulling image configuration: download failed after attempts=1: unknown blob"
Personally, I understand that docker images already exist in the Nexus repository. Even if the configured proxy is unreachable, the client should be able to obtain the existing images correctly.
If the client pulls an image that does not exist in the Nexus repository, the proxy connection is unreachable, and the client cannot obtain the image. This inability to obtain images is understandable.
I would like to know about the Nexus docker proxy warehouse. When the configured proxy URL address is unreachable, and the existing image in the warehouse is obtained, what is the correct execution process of Nexus? How to achieve proxy unreachable, so that cached docker images can be obtained correctly.
Looking forward to reply, thank you.