Skip to content

Tag: docker

Unable to build Java 16 app with Gradle via Docker

I have a standard Springboot application written with Java 16. This compiles and builds just fine in my IDE and via CI/CD etc. However, attempting to move the building to a docker file and I’m hit with: I assume this is some under the hood thing but I can’t figure out how to resolve it. I’ve…

Access localhost from docker container

I have an assignment to set up 3 docker container on localhost:8081, localhost:8082 and localhost:8083 which i’ve done succesfully.Then there is a last container that is a java app on localhost:8080 and it needs to send requests using HttpClient and HttpRequest to the other containers i’ve done th…

Spring Boot application cannot run in Docker

I am building a Spring Boot application for providing some REST services and I’d like to import it in Docker. If I run my application within IntelliJ pressing the run button, I can load the endpoints correctly. My app is listening on the port 8091, as my dockerfile is the following The code for building…