The following configuration does not match the proxy
docker run --rm -d --name docker_registry_proxy -it \
--net kind --hostname docker-registry-proxy \
-e REGISTRIES='nexus.example.com:5002' \
-e VERIFY_SSL=false \
-e ENABLE_MANIFEST_CACHE=true \
-p 0.0.0.0:3128:3128 \
-v $(pwd)/docker_mirror_cache:/docker_mirror_cache \
-v $(pwd)/docker_mirror_certs:/ca \
this one, matches but it tries to proxy to nexus.example.com:443
docker run --rm -d --name docker_registry_proxy -it \
--net kind --hostname docker-registry-proxy \
-e REGISTRIES='nexus.example.com' \
-e VERIFY_SSL=false \
-e ENABLE_MANIFEST_CACHE=true \
-p 0.0.0.0:3128:3128 \
-v $(pwd)/docker_mirror_cache:/docker_mirror_cache \
-v $(pwd)/docker_mirror_certs:/ca \
Example of pull
kubectl run test-$(date +%s) --image=nexus.example.com:5002/traefik --restart=Never -- /bin/sh -c "while true; do sleep 30; done;"
Is there a way to proxy to different ports?
The following configuration does not match the proxy
docker run --rm -d --name docker_registry_proxy -it \ --net kind --hostname docker-registry-proxy \ -e REGISTRIES='nexus.example.com:5002' \ -e VERIFY_SSL=false \ -e ENABLE_MANIFEST_CACHE=true \ -p 0.0.0.0:3128:3128 \ -v $(pwd)/docker_mirror_cache:/docker_mirror_cache \ -v $(pwd)/docker_mirror_certs:/ca \this one, matches but it tries to proxy to nexus.example.com:443
docker run --rm -d --name docker_registry_proxy -it \ --net kind --hostname docker-registry-proxy \ -e REGISTRIES='nexus.example.com' \ -e VERIFY_SSL=false \ -e ENABLE_MANIFEST_CACHE=true \ -p 0.0.0.0:3128:3128 \ -v $(pwd)/docker_mirror_cache:/docker_mirror_cache \ -v $(pwd)/docker_mirror_certs:/ca \Example of pull
Is there a way to proxy to different ports?