What I'm trying to do is to run simple spring boot application inside a docker container ( openjdk:8-jre
) via docker-compose. The code works fine on my machine (macbook pro). The problem is when I'm trying to run the same piece of docker containers on my raspberry pi with raspbian. It's stuck just before logging Tomcat initialized with port(s): 8080 (http)
. The container with spring application only does java -jar
and exposes port 8080
for my another container (on port 8888
) with my single page application. Does anyone had similar problem or know how to fix this?
Here are the logs for running the container on raspberrypi: 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 兆字节并且它起作用了。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.