spring-boot-starter-dubbo icon indicating copy to clipboard operation
spring-boot-starter-dubbo copied to clipboard

运行在 docker容器时, 注册的是容器的IP

Open heng0112 opened this issue 8 years ago • 1 comments

按这里 https://github.com/dubbo/dubbo-docker-sample 的方法, 无法绑定IP ,

请问有什么方法吗?

heng0112 avatar Dec 12 '17 09:12 heng0112

容器使用的时候最好是把端口映射出来。这样可以直接访问本机ip就可以了。 docker run --name myzookeeper -d -p 2181:2181 zookeeper

具体最好参考下docker的使用

itmifen avatar Dec 17 '17 08:12 itmifen