Skip to content

Custom registry on different port does not work #175

@brunocascio

Description

@brunocascio

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions