-
Hi, today, after a VM reboot, this nginx-proxy did startup with an inappropriate configuration leading to requests being directed to the wrong container. After manually running Here is such a request (log):
"3dc64bbc858baa0412cb68xxx": {
"Name": "software-docker_container1_1",
"EndpointID": "016d71c705xxx",
"MacAddress": "02:xx:xx:13:00:06",
"IPv4Address": "172.19.0.6/16",
"IPv6Address": ""
},
"a0ee561716141553677c73xxx": {
"Name": "software-docker_container2_1",
"EndpointID": "cea7d59828675xxx",
"MacAddress": "02:xx:xx:13:00:02",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": ""
},
"bed9bdc7e0398fdxxx": {
"Name": "software-docker_nginx-proxy_1",
"EndpointID": "c5bb23758afxxx",
"MacAddress": "02:xx:xx:13:00:03",
"IPv4Address": "172.19.0.3/16",
"IPv6Address": ""
}, While the request for Here are the relevant variables for each container:
(container1's VIRTUAL_HOST equals the host's public IP address)
That's the first time I'm experiencing this issue in production. Have there been any regressions recently or am I using it wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi
I don't recommend doing this. Even if it does work, it's never been officially supported nor tested, and is not the intended use of the container. That said I've experienced issues similar to yours (a request being proxied to an correct container, with the misconfiguration being after a container restart) in the past without using IP in place of proper host name in To my knowledge there hasn't been any recent known regression that could have caused this. |
Beta Was this translation helpful? Give feedback.
Hi
I don't recommend doing this. Even if it does work, it's never been officially supported nor tested, and is not the intended use of the container.
That said I've experienced issues similar to yours (a request being proxied to an correct container, with the misconfiguration being after a container restart) in the past without using IP in place of proper host name in
VIRTUAL_HOST
. I've never been able to reliably reproduce the issue and it's always been a very uncommon occurrence.To my knowledge there hasn't been any recent known regression that could have caused this.