This project demonstrates how to build an image for a simple java program using Dockerfile and run it through docker container.
- First go to the location where
Dockerfileis present. (Current directory in this project). - Build the image :
docker build -t my-image . - Running through container :
docker run --name my-container my-image
- Output will be shown in console as
Hello World!.
- Mayank Sahu (https://github.com/mayank19o7).