Skip to main content

Posts

Showing posts with the label Docker

Run Spring boot application on Docker

In this blog, I will explain how to  run the .jar file on Docker Engine Docker  containers are the fastest growing cloud-enabling technology and driving a new era of computing and application architecture with their lightweight approach to bundle applications and dependencies into isolated, yet highly portable application packages. What you need? Docker running on your computer. Initial Plan I will create a simple spring boot application and then create a Dockerfile to build the docker image. finally, I will run the application on Docker container If you don't have Docker running on your computer. Here is the link to install the Docker   Step 1: Create Spring-boot application Navigate this link to create the initial spring-boot application. Import the project to the Eclipse IDE or whatever you like and create the simple rest endpoint. Here is my code. import org.springframework.web.bind.annotation.RequestMapping; import org.springframework....