<div dir="ltr">Hi, Chris.<div><br></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">&gt; localhost at port 80</span><br></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">Could you change localhost to 0.0.0.0(or youe Docker container IP Address) at addHttpLIstner in your app?</span></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 8:55 PM, Bernd <span dir="ltr">&lt;<a href="mailto:ecki@zusammenkunft.net" target="_blank">ecki@zusammenkunft.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Your iptables do not contain 127.0.0.1 and ::1 as destination?</p>
<p dir="ltr">I would try it without a packet filter first.</p>
<div class="gmail_quote">Am 31.10.2014 12:51 schrieb &quot;Chris Christo&quot; &lt;_<a href="mailto:c.c@mail.com" target="_blank">c.c@mail.com</a>&gt;:<div><div><br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
Has anyone managed to get undertow working with docker (on CoreOS)?<br>
<br>
I have a very basic jar that starts up an undertow server on (localhost at port 80) and has a single HttpHandler at the endpoint ‘/hello’. I’ve tested the jar locally and the endpoint works fine.<br>
<br>
I have a docker file along the lines of:<br>
<br>
---------------<br>
FROM dockerfile/java:oracle-java8<br>
<br>
## wget the app from a server<br>
<br>
CMD java -jar my-app.jar<br>
<br>
EXPOSE 80<br>
---------------<br>
<br>
I then run the container (after building it from the above docker file) as follows:<br>
<br>
docker run -d -p 80:80 my-app<br>
<br>
(Yes I made sure the server did start and is running before the following:)<br>
<br>
I see that the iptables are as follows (which is identical to what dockerfiles/nginx produces):<br>
<br>
---------------<br>
Chain INPUT (policy ACCEPT)<br>
target     prot opt source               destination<br>
<br>
Chain FORWARD (policy ACCEPT)<br>
target     prot opt source               destination<br>
ACCEPT     tcp  --  anywhere             172.17.0.65          tcp dpt:http<br>
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED<br>
ACCEPT     all  --  anywhere             anywhere<br>
ACCEPT     all  --  anywhere             anywhere<br>
<br>
Chain OUTPUT (policy ACCEPT)<br>
target     prot opt source               destination<br>
---------------<br>
<br>
Finally I try to curl at the ‘/hello’ endpoint but I just get a connection refused. I try the curl request to localhost from within the same server and it doesn’t work. I also try from a different computer using the public IP of the machine and it does’t work.<br>
<br>
The dockerfile/nginx works perfect when I curl at it at port 80.<br>
<br>
I’m stumped for ideas, please help!<br>
<br>
Thanks,<br>
<br>
Chris<br>
<br>
<br>
<br>
_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br>
</blockquote></div></div></div>
<br>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div></div>