Closed changdongvan closed 2 years ago
No, you gotta understand this is about HTTPS (HTTP + TLS, usually 443) Man in the Middle proxying.
I have the same need, and it seems to be very easy to add this feature. I could not build the docker images in this project and get it to work - but I managed to fix the same problem in tiangolo/docker-registry-proxy
Here is what I think is needed:
proxy_connect_allow all;
/etc/nginx/docker.targetHost.map
. In this example it shall contain xxx xxx:5000
. Should be done using an environment variable similar to REGISTRIES
.
I'm using the latest 0.6.4, when depolying with the standard 443 https registry service port, the proxy service is ok. However when using the designated port, such as https://xxx:5000/, the proxy service is broken. The docker client shows error info as belows: Error response from daemon: Get https://xxx:5000/v2/: Forbidden.
When getting rid of the proxy, it is ok to pull directly from the https://xxx:5000. so there is something wrong with the proxy service. Is there some config missing?