This is a simple Java project that prints the system date on the screen. We will run this project through Docker.
git clone https://github.com/muhammadaliazhar/JavaApp-docker.gitdocker build -t java-app .
`docker run java-app:latest`
Whenever we do changes in our application code then we need to update docker image as well
cd src
vim Main.javadocker build -t java-app:v1 .docker run java-app:v1