In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to solve the problem of communication on springcloud feign docker". In the daily operation, I believe that many people have doubts about how to solve the problem when they are unable to communicate on springcloud feign docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to solve the problem of communication on springcloud feign docker". Next, please follow the editor to study!
Unable to communicate on feign docker
Feign request remote interface error:
Caused by: java.net.UnknownHostException
The local environment can run.
Put it in the docker environment, A container feign calls B container, the call does not work.
The final solution
1.eureka plus
The eureka configuration of 2.feign client An is also added
3. The service on the invoked B container is also added to the above configuration
Docker cannot communicate with each other on different springcloud servers.
In short, solve it in a word.
Docker run-di-- name=zh_budget-p 9022 name=zh_budget 9022-e "EUREKA_INSTANCE_IP-ADDRESS=10.196.80.42" 10.196.80.42:5000/budget:1.0-SNAPSHOT
If you specify a server address like this, you can communicate with each other (as long as the two servers are interconnected).
At this point, the study on "how to solve the problem of unable to communicate on springcloud feign docker" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.