GitHub - Anusha0503/docker-2: How to Dockerize Spring Boot Application · GitHub
Skip to content

Anusha0503/docker-2

 
 

Folders and files

Repository files navigation

spring-boot-dockerize

How to Dockerize Spring Boot Application

Build Docker Image

$ docker build -t spring-boot-docker.jar .

Check Docker Image

$ docker image ls

Run Docker Image

$ docker run -p 9090:8080 spring-boot-docker.jar

In the run command, we have specified that the port 8080 on the container should be mapped to the port 9090 on the Host OS.

About

How to Dockerize Spring Boot Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Java 88.4%
  • Dockerfile 11.6%