*************************** APPLICATION FAILED TO START ***************************
Description:
An attempt was made to call the method org.apache.curator.framework.api.CreateBuilder.creatingParentsIfNeeded()Lorg/apache/curator/framework/api/ProtectACLCreateModePathAndBytesable; but it does not exist. Its class, org.apache.curator.framework.api.CreateBuilder, is available from the following locations:
将 spring cloud 项目部署到 docker 容器中后,虽然可以配置容器的端口映射到宿主机的端口 但是在 eureka 界面显示的instance id 是一串随机的字符串,类似于 d97d725bf6ae 这样的 但是,事实上,我们想让他显示出 IP ,这样我们可以直接点击而打开 info 端点信息
service 模块 links server 模块,再起个别名 traffic-service-eureka ,因为我配置文件里配置的是 traffic-service-eureka, 这样 service 模块就可以通过 server 或者 traffic-service-eureka 来访问 server 了
另外,配置的 hostname,可以进入 容器中查看 /etc/hosts 该配置会在 文件中生成一个容器的 ip 和 hostname 的记录