expose icon indicating copy to clipboard operation
expose copied to clipboard

Running expose in Docker for another container fails

Open TiiFuchs opened this issue 5 years ago • 1 comments

Hi,

I tried to run expose in a Docker container that is linked to a nginx webserver. I ran expose share nginx .... Note that "nginx" is the hostname of the container that serves the website and it is reachable via curl etc.

But expose cannot resolve the hostname "nginx", because in app/Client/Http/HttpClient.php in line 69 the dns ip is fixed as '127.0.0.1', which is not how it's configured in the Ubuntu system I ran expose on.

I found out that docker configured the dns to be 127.0.0.11 in /etc/resolv.conf, and when I changed this IP address in HttpClient.php to the correct one, everything worked fine. I also tried to remove the DNS IP address and it worked too.

So I guess it should be removed...? So the DNS resolver of the system is beeing used.

TiiFuchs avatar Oct 27 '20 21:10 TiiFuchs

This was fixed then reverted for some reason, so the bug is back on latest version, i added a comment on the PR that the regression was made:

https://github.com/beyondcode/expose/pull/177/files#r577150227

Reverting to 1.4.1 works.

dbpolito avatar Feb 16 '21 21:02 dbpolito

Closing this issue because it's old. Please feel free to open a new one if it's still relevant.

sschlein avatar Dec 21 '23 13:12 sschlein