docker Mule-server curl:(56)Recv failure:连接由对等体重置 [英] docker Mule-server curl: (56) Recv failure: Connection reset by peer

查看:3397
本文介绍了docker Mule-server curl:(56)Recv failure:连接由对等体重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能只是我的菜鸟知识Docker,
,但我无法让网络工作。



我试图运行Mule-server通过pr3d4t0r / mule存储库。
我可以运行它,热插拔应用程序,但我可以达到它。



我可以运行没有Docker的本地服务器,它的工作原理。
但是当我尝试使用Docker时,不要。



当我尝试做一个简单的卷曲命令时,我得到curl:(56)Recv failure:Connection reset通过对等

  curl http:// localhost:8090 / Sven 
pre>

我尝试通过-p公开端口,并通过-p8090:8090单独发布,但没有运气。



当Docker运行时,它阻止端口(我尝试同时运行Docker和普通服务器,但正常的一个表示已经在使用的端口)。



当我尝试像jboss / wildfly这样的其他图像时,我使用-p8080:8080没有任何问题,它的效果很好。



mule-server中的应用程序将记录并回复一个简单的hello World,输出表示应用程序已部署,但在尝试访问该应用程序时没有消息或记录。



任何建议?

解决方案

在我的情况下,实际上是配置不正确的应用程序。它以localhost为主机。它应该是0.0.0.0没有它只是在本地主机名为docker容器,但不是从它的外面。



您不需要使用-net = host。



所以检查是否有配置


This might just be my rookie knowledge of Docker, but I can't get the networking to work.

I'm trying to run a Mule-server via the pr3d4t0r/mule repository. I can run it, hot-swap applications but I can reach it.

I can run a local server without Docker, and it works flawlessly. But not when I try it with Docker.

When I try to do a simple curl command I get "curl: (56) Recv failure: Connection reset by peer"

curl http://localhost:8090/Sven

I have tried exposing the ports via -P and separately via -p 8090:8090 but no luck.

When the docker is running it blocks the ports (I tried running Docker and the normal server at the same time but the normal one said the ports where already in use).

When I try another Image like jboss/wildfly and I use -p 8080:8080 there's no problem, it works perfectly.

The application in the mule-server will log and respond a simple "hello World", the output says that the application is deployed, but no messages or logging while I try to reach it.

Any suggestions?

解决方案

In my case it was actually the app that was configured incorrectly. It had localhost as host. It should have been 0.0.0.0 without this it was acting only on localhost aka the docker container but not from outside of it.

You should not need to use -net=host.

So check if there's a configuration

这篇关于docker Mule-server curl:(56)Recv failure:连接由对等体重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆