docker+apollo+springcloud部署问题

提问 未结 2 243
will
will VIP3 2019-08-08
悬赏:20积分
版本:renren-cloud 开发环境:
在linux环境部署springcloud项目,如果不使用docker部署,正常启动,完全没有问题,可成功启动。 但是一旦使用docker部署springcloud,就报错,原因自己猜测是不是因为,docker没有办法读取/opt/settings/server.properties,还是docker的java环境需要设置? 部分日志如下: 2019-08-08 07:20:33.327 INFO 1 --- [ main] c.c.f.f.i.p.DefaultApplicationProvider : App ID is set to renren-cloud by app.id property from System Property 2019-08-08 07:20:33.355 INFO 1 --- [ main] c.c.f.f.i.p.DefaultServerProvider : Environment is set to null. Because it is not available in either (1) JVM system property 'env', (2) OS env variable 'ENV' nor (3) property 'env' from the properties InputStream. 2019-08-08 07:20:33.634 INFO 1 --- [ main] c.c.f.a.i.DefaultMetaServerProvider : Located meta services from apollo.meta configuration: http://localhost:8080! 2019-08-08 07:20:33.687 INFO 1 --- [ main] c.c.f.apollo.core.MetaDomainConsts : Located meta server address http://localhost:8080 for env UNKNOWN from com.ctrip.framework.apollo.internals.DefaultMetaServerProvider 2019-08-08 07:20:37.825 WARN 1 --- [ main] c.c.f.a.i.AbstractConfigRepository : Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository, reason: Get config services failed from http://localhost:8080/services/config?appId=renren-cloud&ip=172.22.0.6 [Cause: Could not complete get operation [Cause: Connection refused (Connection refused)]] 请求大神回复,使用docker,如何正确部署?说明文档里面,是否缺少关键操作?
回帖
  • docker没有办法读取/opt/settings/server.properties
    0 回复
  • will
    will VIP3 (楼主)
    2019-08-09
    大神,那这边,我应该如何使用呢?能补充一下springcloud下面的docker的部署方式文档吗
    0 回复