Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heng0112 opened this issue Dec 12, 2017 · 1 comment
Open

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

heng0112 opened this issue Dec 12, 2017 · 1 comment

Comments

@heng0112
Copy link

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

请问有什么方法吗?

@itmifen
Copy link

itmifen commented Dec 17, 2017

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

具体最好参考下docker的使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants