Closed GAS85 closed 2 years ago
Container is up, and it's accessible by other machines (aka accessible via host IP and port) so there is no issue or bug that I can see.
We never advertise access via localhost
.
Closing
Hi would like to ask you to open this ticket again, because original issue was not solved.
So if I would like to expose this service with e.g. apache:
#Sonarr
Redirect 301 "/sonarr" "/sonarr/"
<Location /sonarr/>
ProxyPass http://localhost:8989/ retry=0 timeout=5
ProxyPassReverse http://localhost:8989/
RequestHeader set Connection ""
</Location>
This will never work.
For example it works very good with https://github.com/linuxserver/docker-dokuwiki, it is accessible by my Host Machine via exposed port:
curl http://localhost:9014 -v > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1:9014...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 9014 (#0)
> GET / HTTP/1.1
> Host: localhost:9014
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.18.0
< Date: Fri, 27 May 2022 20:12:46 GMT
< Content-Type: text/html; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/7.4.26
< Vary: Cookie
< Set-Cookie: DokuWiki=XXXXXXXXXXXXX; path=/; HttpOnly
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate
< Pragma: no-cache
< Set-Cookie: XXXXXXXXX=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly
< X-UA-Compatible: IE=edge,chrome=1
<
{ [7764 bytes data]
100 37462 0 37462 0 0 475k 0 --:--:-- --:--:-- --:--:-- 475k
* Connection #0 to host localhost left intact
The same I expect from other containers.
Github issues is for bug reports. This is not a bug. There are other channels for support.
Expected Behavior
Run container and reach it via exposed port on a localhost, e.g.
Current Behavior
Similar to https://github.com/linuxserver/docker-ombi/issues/97 and #165
Container is not accessible for a localhost machine with current configuration, nor reverse proxy, nor curl will works, only accessible from other containers, or other machines in network:
Steps to Reproduce
Check if port exposed and try to connect to it:
Environment
OS: Ubuntu 20.04 CPU architecture: x86_64 How docker service was installed: from the official docker repo Docker version: 20.10.13
Command used to create docker container (run/create/compose/screenshot)
content of
/var/docker/docker-compose.yaml
is above.Docker logs