繁体   English   中英

带有 Spring Boot 应用程序的 Docker 卡在 RaspberryPi 上的 AnnotationConfigServletWebServerApplicationContext

[英]Docker with Spring Boot application stuck at AnnotationConfigServletWebServerApplicationContext on RaspberryPi

我想要做的是通过 docker-compose 在 docker 容器( openjdk:8-jre )内运行简单的 spring 启动应用程序。 该代码在我的机器(macbook pro)上运行良好。 问题是当我尝试使用 raspbian 在我的 raspberry pi 上运行相同的 docker 容器时。 它在记录Tomcat initialized with port(s): 8080 (http)之前卡住了。 带有 spring 应用程序的容器只执行java -jar并使用我的单页应用程序为我的另一个容器(在端口8888 )公开端口8080 有没有人有类似的问题或知道如何解决这个问题?

以下是在wfeservices | . ____ _ __ _ _ wfeservices | /\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\ wfeservices | ( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\ wfeservices | \\\\/ ___)| |_)| | | | | || (_| | ) ) ) ) wfeservices | ' |____| .__|_| |_|_| |_\\__, | / / / / wfeservices | =========|_|==============|___/=/_/_/_/ wfeservices | :: Spring Boot :: (v2.0.3.RELEASE) wfeservices | wfeservices | 2018-08-22 20:36:24 - Starting Application v1.0-SNAPSHOT on 4b7fcb7b344c with PID 7 (/wfeservices.jar started by root in /) wfeservices | 2018-08-22 20:36:24 - No active profile set, falling back to default profiles: default wfeservices | 2018-08-22 20:36:28 - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1412c2f: startup date [Wed Aug 22 20:36:28 UTC 2018]; root of context hierarchy上运行容器的日志: wfeservices | . ____ _ __ _ _ wfeservices | /\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\ wfeservices | ( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\ wfeservices | \\\\/ ___)| |_)| | | | | || (_| | ) ) ) ) wfeservices | ' |____| .__|_| |_|_| |_\\__, | / / / / wfeservices | =========|_|==============|___/=/_/_/_/ wfeservices | :: Spring Boot :: (v2.0.3.RELEASE) wfeservices | wfeservices | 2018-08-22 20:36:24 - Starting Application v1.0-SNAPSHOT on 4b7fcb7b344c with PID 7 (/wfeservices.jar started by root in /) wfeservices | 2018-08-22 20:36:24 - No active profile set, falling back to default profiles: default wfeservices | 2018-08-22 20:36:28 - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1412c2f: startup date [Wed Aug 22 20:36:28 UTC 2018]; root of context hierarchy wfeservices | . ____ _ __ _ _ wfeservices | /\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\ wfeservices | ( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\ wfeservices | \\\\/ ___)| |_)| | | | | || (_| | ) ) ) ) wfeservices | ' |____| .__|_| |_|_| |_\\__, | / / / / wfeservices | =========|_|==============|___/=/_/_/_/ wfeservices | :: Spring Boot :: (v2.0.3.RELEASE) wfeservices | wfeservices | 2018-08-22 20:36:24 - Starting Application v1.0-SNAPSHOT on 4b7fcb7b344c with PID 7 (/wfeservices.jar started by root in /) wfeservices | 2018-08-22 20:36:24 - No active profile set, falling back to default profiles: default wfeservices | 2018-08-22 20:36:28 - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1412c2f: startup date [Wed Aug 22 20:36:28 UTC 2018]; root of context hierarchy

我在 AWS ECS 上遇到了完全相同的问题,然后我意识到我的内存很少,所以我将内存增加到 4096 兆字节并且它起作用了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM