To create a Docker image for a Java application and execute it using Docker commands.
In this experiment, a Java program was containerized using Docker. A Dockerfile was created to automate the build and execution process. The image was built and run using different Docker commands, including interactive mode for debugging.
Shows the Java source file and Dockerfile present in the project directory.

Displays the Java program used for containerization.

Shows the Dockerfile written to build the Java application image.

Displays the process of building the Docker image using the Dockerfile.

Shows execution of the Docker container and program output.

Shows running the container in interactive mode using -it.

Displays access to the container shell for verification.

Shows successful output generated by the Java application.

Confirms the successful execution of the Java Docker container.

The Java application was successfully deployed using Docker.
This experiment helped in understanding how Docker can be used to containerize and run Java-based applications efficiently.