dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

how to dubbo-provider using host ip of docker container

Open ryankong opened this issue 8 years ago • 6 comments

when dubbo-provider run in docker container ,it rigistried by the ip of contaner ,which unvisitable by other server

ryankong avatar Mar 07 '18 16:03 ryankong

You can add --net=host to docker run command, for example, docker run --net=host dubbo-provider.

leiwei2094 avatar Mar 26 '18 05:03 leiwei2094

So that can not deploy multiple dubbo apps on a docker, unless use different port. It is not recommended, suggest to use the virtual IP of docker. @ryankong

lihuagang03 avatar May 08 '18 13:05 lihuagang03

Hi, @vangoleo, thanks for your reply, what about running a dubbo-provider in a k8s cluster? As we konwn, dubbo register the podIP rather than a nodeIP to registry(zookeeper), thus consumer outside of k8s cluster cannot reach to the providers within k8s. Any solution to register nodeIP to ZK instead?

MouGG avatar Jun 21 '18 06:06 MouGG

Please check this example: https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-docker

ralf0131 avatar Jul 16 '18 06:07 ralf0131

Please check this example: https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-docker

It is not found now.

baozi-2019 avatar Jan 27 '23 10:01 baozi-2019

@baozi-2019 Moved to https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-docker

AlbumenJ avatar Jan 28 '23 03:01 AlbumenJ