如何解决使用错误代码137杀死的docker容器的问题

时间:2018-05-19 12:20:43

标签: docker docker-compose

我有一个由docker-compose启动的容器,它每次都会自动杀死,使用docker logs我可以看到如下内容:

ework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2018-05-19 12:01:44.920  INFO 5 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-05-19 12:01:46.022  INFO 5 --- [           main] org.xnio                                 : XNIO version 3.3.8.Final
2018-05-19 12:01:46.073  INFO 5 --- [           main] org.xnio.nio                             : XNIO NIO Implementation Version 3.3.8.Final
2018-05-19 12:01:46.196  WARN 5 --- [           main] io.undertow.websockets.jsr               : UT026009: XNIO worker was not set on WebSocketDeploymentInfo, the default worker will be used
2018-05-19 12:01:46.200  WARN 5 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2018-05-19 12:01:46.259  INFO 5 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext
2018-05-19 12:01:46.260  INFO 5 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 5446 ms
2018-05-19 12:01:47.394  INFO 5 --- [           main] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'org.smarter.configuration.JerseyConfiguration' to [/*]
2018-05-19 12:01:47.407  INFO 5 --- [           main] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2018-05-19 12:01:47.418  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'metricsFilter' to: [/*]
2018-05-19 12:01:47.422  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-05-19 12:01:47.424  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-05-19 12:01:47.424  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-05-19 12:01:47.424  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2018-05-19 12:01:47.424  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webRequestLoggingFilter' to: [/*]
2018-05-19 12:01:47.425  INFO 5 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'applicationContextIdFilter' to: [/*]
Killed

最后一行杀死了#39;显示容器被某些东西杀死,使用docker inspect,我可以看到退出代码是137,但是OOMKilled是假的。

我猜它因为资源限制配置而被杀死了,我该如何查看配置?如果有任何限制,我该如何删除约束?

0 个答案:

没有答案