ashman97
(Ashil Muhammod Rafique)
1
Hi,
when building docker images and dockerfile
how do I get docker to use the proxy of 127.0.0.1:9000 of the host machine of the container
when I point it to 127.0.0.1:9000, it points to the containers localhost and not the host
I have tried using host.docker.internal command to point to http and https variable but no luck
any help would be appreciated - thanks
rimelek
(Ákos Takács)
2
host.docker.internal
is only available in Docker Desktop. Using Docker Engine (Docker CE) you can
-
Use the host IP and protect the proxy with firewall rules against external requests.
-
Allow the proxy to listen on any private IP on the host which is available from containers
-
Use socat to implement a similar solution to the host.docker.internal
domain in Docker Desktop:
Host.docker.internal in production environment - #4 by rimelek