Skip to content

Spring boot deployment using container based deployment framework (Docker)

Notifications You must be signed in to change notification settings

KuntalDanech/spring-boot-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot deployment using container based deployment (using Docker)

Shows how to deploy the Spring boot app in a container based deployment framework using Docker. Here added Docker file in the project file. After downloading run the below command using docker.

Build a Docker image

sudo docker build -f Dockerfile -t springboottag .

See Docker images

sudo docker image ls

run the docker command and container will start

sudo docker run -p 8080:8080 springboottag

List out any running containers in the docker

sudo docker ps

List out all containers details

sudo docker ps -a

Login in dockerhub repository

sudo docker login

create a tag

sudo docker tag springbootdockertag <dockerId>/springboottag:latest

push the tag in to docker hub

docker push <dockerId>/springboottag:latest

Funally docker pull command

docker pull <dockerId>/springboottag

About

Spring boot deployment using container based deployment framework (Docker)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published