I have trouble setting up a proxy Docker repository.
My objective is to have the possibility to pull a Jupyter Notebook image from my Nexus repository.
So I would want to set up a proxy Docker repo toward Quay
Where do I have trouble?
After setting it up, there is no content in the proxy repo.
Trying a docker pull on the newly set up repository does not work neither.
You need to be more specific than does not work in order for anyone to suggest anything as this does not describe what you attempted nor what the result was.
Clément, a couple of things. First of all, proxies don’t fill up with the remote content automatically, they only cache what you pull through it. Secondly, the Remote repository URL may not be correct, that looks like the address of the specific image rather than the registry that contains the image.
However, when I try to do a docker pull to get an image from the “jupyter_docker” proxy repository, as said earlier it does not work. What is interesting is that Nexus tries to look in the same repository:
Which explains why I can not get anything, as Nexus does not know I want to search in jupyter_docker proxy repo when I do a docker pull in the first place.
Oh I assumed you’d followed the help site - you need to configure either an HTTP(S) connector port or use a reverse proxy. Docker clients do not work outside the context root of URLs:
Ah ah sorry there are many intricated pages. Plus, I am not very proficient with proxies, nor I am the one that did the install so it is not easy for me. Thanks for your answer as I was able to investigate further.
Nginx is already installed on the server. I have tried several nginx configurations to expose multiple registries but with no success (as usual).
However, I read in the documentation that there is an easier way to have multiple accessible Docker registries in Nexus: Docker Groups.
This seems to be the normal way I guess?
I created a Docker group, containing both registries “docker” and “jupyter_docker”. It has the port 8123 which was the port used by the “docker” registry (for which I disabled the port).
The image is now cached in the proxy Docker registry and accessible from my Nexus server.
Maybe I should have asked what is the usual way to have multiple Docker registries first.
Anyway, a bit sorry that I was not able to make the reverse proxy work as wanted, but thank you for the help.