Locally forward incoming requests to another host at the tcp level using nginx stream forwarding
1.3K
Also on: https://github.com/donuk/docker-portforwarder
Run as a reverse proxy to hub.docker.com:
docker run -p 80:80 -p 443:443 -e PORT_80=hub.docker.com -e PORT_443=hub.docker.com --rm donuk/portforwarding
Serve hub.docker.com over http locally on port 2000:
docker run -p 2000:2000 -e PORT_2000=hub.docker.com:80 --rm donuk/portforwarding
Set ALLOWED_IPS to a comma-separated list of allowed IPv4/IPv6 addresses or CIDR ranges. Connections from other clie
nt IPs are denied.
docker run -p 443:443 -e PORT_443=hub.docker.com -e ALLOWED_IPS="203.0.113.10,2001:db8::/32,10.0.0.0/8" --rm donuk/por
tforwarding
Content type
Image
Digest
sha256:ae71a7183…
Size
61 MB
Last updated
2 days ago
docker pull donuk/portforwarding