Category : java

When I launch Docker container with Kafka broker it fails sometimes, but I can’t understand by logs what exactly happens, logs always are: # docker-compose up broker-1 zookeeper-1 is up-to-date Starting broker-1 … done Attaching to broker-1 broker-1 | ===> User broker-1 | uid=1000(appuser) gid=1000(appuser) groups=1000(appuser) broker-1 | ===> Configuring … broker-1 | ===> Running ..

Read more

We have a project with sensitive information, which cannot be added to docker image during building. The Dockerfile is: FROM openjdk:11.0.12-jre-slim COPY target/security.jar /security.jar ENTRYPOINT ["java","-jar","/security.jar"] And in project security we have certs folder with *.cer files. security/ src/ — source files certs/ — .cer files test1.cer test2.cer Dockerfile We cannot include this files into ..

Read more

I have a Spring boot app running inside a docker container on port 8080 and on the host 8082 Here is the docker log 2021-10-27 08:08:53,810 [main] INFO org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver – Exposing 2 endpoint(s) beneath base path ‘/actuator’ 2021-10-27 08:08:54,105 [main] INFO org.apache.coyote.http11.Http11NioProtocol – Starting ProtocolHandler ["http-nio-127.0.0.1-8080"] 2021-10-27 08:08:54,180 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer – Tomcat started on ..

Read more

There is no problem with my PC. The following problems occur when creating and running containers through docker build. I don’t know why this is happening. ERROR LOG 2021-10-26 23:59:18.131 WARN 1 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘postConstructInitializeBean’: Invocation of ..

Read more