问题描述
如何解决此错误: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 (将#修改为@)