簡體   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