docker Mule-server curl: (56) Recv failure: Connection reset by peer

后端 未结 4 1901
北恋
北恋 2020-12-14 11:14

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 r

相关标签:
4条回答
  • 2020-12-14 11:46

    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

    0 讨论(0)
  • 2020-12-14 11:48

    if you have this , comment or remove it, server.address=localhost in your application.properties

    0 讨论(0)
  • 2020-12-14 12:08

    In application.properties need set 0.0.0.0 ip not 127.0.0.0.

    0 讨论(0)
  • 2020-12-14 12:09

    error

    "curl: (56) Recv failure: Connection reset by peer"
    

    mean that no process in docker image listening to the port. Option -p is bind of port in host system and image.

    -p <port in host os to be binded to>:<port in container>
    

    So, check your image, maybe your app in container use different port and you need

    -p 8080:8090
    
    0 讨论(0)
提交回复
热议问题