Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Deploy-JAVA-app-on-Docker-Container

Overview:

This is a simple Java project that prints the system date on the screen. We will run this project through Docker.

Implementation Steps:

Step 1

git clone https://github.com/muhammadaliazhar/JavaApp-docker.git

Step 2

docker build -t java-app .
image

Step 3

` docker run --name java-container java-app`
image

Step 4 --- Change the source code and create an update docker image

Whenever we do changes in our application code then we need to update docker image as well

cd src
vim Main.java

Step 5 Build & Tag Docker image again to create updated image

docker build -t java-app:v1 .

Step 6 Run container using updated docker image

docker run java-app:v1
image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages