Many companies are now using the docker installation dubbo as micro-environment container services.
There are so few points to note.
First dubbo registered in the mess zookeeper above IP problem.
After a lot of people say what configuration in dubbo inside Dockerfile some of the properties on the list, but I have not succeeded, but after I read many blog and found the code, just give static ip and hostname configuration settings docker run for the local host mode to specific orders as follows:
zookeeper:
echo >> /etc/hosts "$HOST_IP zoo"
hostnamectl --static set-hostname zoo
systemctl restart systemd-hostnamed
docker :
docker run --net=host
When establishing docker services, often you do not want to use docker logs to view the log, so I usually write in Dockerfile inside
CMD["sh", “-c”, "java -jar ... >x.log"]