You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2019/07/03 07:39:34 UTC

[GitHub] [dubbo-samples] liu2510865 commented on issue #71: docker启动dubbo项目之后,telnet可以通信,注册中心的IP还是容器IP

liu2510865 commented on issue #71: docker启动dubbo项目之后,telnet可以通信,注册中心的IP还是容器IP
URL: https://github.com/apache/dubbo-samples/issues/71#issuecomment-507978727
 
 
   > 根据你的命令只要改成
   > 
   > ```
   > docker run --hostname 主机名  --name alfred_mobile_service -v /etc/hosts:/etc/hosts -p 10.0.21.91:20890:20890 -it --rm -d liu2510865/alfred_mobile_service
   > ```
   > 
   > 主机名对应ip 写在hosts里面 并且映射到容器ip 挂在hosts就可以啦
   
   多谢  已经搞定了

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org