Install an HTTPS proxy on a machine that has the access to the load balancer IP of the embedded Harbor registry, then configure the installed proxy on the client machines that needs access to the registry.
You can install and use the HTTPS proxy that you prefer, below are the steps to setup a sample tinyproxy on Debian / Ubuntu linux machine, note that this proxy should not be used for production:
- Run the following bash command to install tinyproxy:
apt-get install tinyproxy
- Copy the attached (attachment section) tinyproxy.conf to /etc/tinyproxy.conf, this configures the proxy on port 8888.
- Run the following bash command to restart tinyproxy, now the proxy is configured:
systemctl restart tinyproxy.service
- Proxy should be configured in the browser that is used to show the embedded Harbor registry UI by following typical browser specific browser proxy configurations. The proxy configuration for docker clients that pull / push images on the Harbor registry should follow the instructions from docker Configure Docker to use a proxy server.