{"repo":"qoomon/docker-host","free":true,"listed":false,"github":"https://github.com/qoomon/docker-host","clone":"git clone https://github.com/qoomon/docker-host.git","description":"A docker sidecar container to forward all traffic to local docker host or any other host","language":"Shell","stars":1160,"topics":["docker","host","connection","access","firewall","port-forwarding","tunnel","docker-compose","macos","linux"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"docker-host Docker Image Tags: latest 3 3.x.x Docker image to forward TCP and UDP traffic to the docker host. This also works for (rootless) podman. This README.md uses the term docker, but you can read that as both docker and podman (it works for both), unless otherwise specified. This container will determine the docker host address in the following order If set use environment variable DOCKER HOST . Can be an IP address or a DNS name. This allows you to use this image to forward traffic to arbitrary destinations, not only the docker host. Try to resolve host address from DNS names. docker hostname host.docker.internal podman hostname host.containers.internal Defaults to default gateway ( ip -4 route show default ) Ports By default all ports ( 1-65535 ) are forwarded to docker host. You may restrict ports by setting environment variable PORTS to a space and/or comma separated list of ports and/or port ranges e.g docker run -e PORTS='443, 8000-9000' ... . You may also configure port mapping e.g. 443:8443, 8000-9000:5000-6000 ( CONTAINER PORT:HOST PORT ). --- [!IMPORTANT] #### On Linux systems You have to bind your host applications to 0.0.0.0 or bridge network gateway in addition to 127.0.0.1 . Use following docker command to get the bridge network gateway IP address docker network inspect bridge --format='{{( index .IPAM.Config 0).Gateway}}' For (rootless) podman , it's sufficient to bind to localhost, assuming default podman installation. You might need to configure your f","default_branch":null,"files":null,"tree":[],"storefront":"/r/qoomon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/qoomon/docker-host/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}