This is a simple Java application containerized using Docker.
It prints a greeting message along with the current system date when run inside a Docker container.
The Java program:
- Uses the
java.util.Dateclass - Prints a message to verify successful execution inside Docker
- Java 17+
- Docker (for containerized deployment)
project-root/
│── src/
│ └── Main.java
│── Dockerfile
│── README.mdClone the Repository:
git clone https://github.com/dsusmit63/simple-java-docker.git
cd simple-java-docker
- Build the docker image:
docker build -t simple-java-docker:latest .- Run the container:
docker run --name simple-java-docker simple-java-docker:latestHello, Docker! Current date: Mon Jan 20 12:34:56 UTC 2026