如何解决我该如何解决这个RibbonLoadBalancer和Eureka错误:host.docker.internal
如何解决此错误:host.docker.internal没有可用实例
java.lang.IllegalStateException: No instances available for host.docker.internal
at org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.execute(RibbonLoadBalancerClient.java:136) ~[spring-cloud-netflix-ribbon-2.2.1.RELEASE.jar:2.2.1.RELEASE]
at org.springframework.cloud.client.loadbalancer.RetryLoadBalancerInterceptor.lambda$intercept$0(RetryLoadBalancerInterceptor.java:81) ~[spring-cloud-commons-2.2.1.RELEASE.jar:2.2.1.RELEASE]
at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287) ~[spring-retry-1.2.5.RELEASE.jar:na]
at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:180) ~[spring-retry-1.2.5.RELEASE.jar:na]
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 platform.wondershare.com
192.11.114.105 host.docker.internal
192.11.114.105 gateway.docker.internal
192.11.114.108 host.docker.internal
192.11.114.108 gateway.docker.internal
192.11.114.110 host.docker.internal
192.11.114.110 gateway.docker.internal
192.11.114.107 host.docker.internal
192.11.114.107 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
这些docker服务在什么时候创建的,如果我删除它们,运行docker会不会有问题?
.yml在尤里卡:
eureka:
server:
enable-self-preservation: false
instance:
hostname: localhost
client:
fetch-registry: false
register-with-eureka: false
server:
port: 5001
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。