This repository is part of my Docker learning journey. In this project, I practiced containerizing a simple Java application using Docker.
The goal of this project was to understand:
- How Docker works with Java applications
- How to write a Dockerfile
- How to build and run Docker images and containers
- Clone an existing Java application repository
- Write a Dockerfile for the Java application
- Build a Docker image
- Run the application inside a Docker container
- Understand the complete Docker workflow as a beginner
- Java
- Docker
- Git
- Linux (Ubuntu)
The Dockerfile is used to containerize the Java application.
- Use a Java-based image
- Copy application files into the container
- Compile the Java program
- Run the Java application inside the container
This helped me understand how Java applications run inside Docker containers.
git clone < repo-URL >
cd <project>docker build -t simple-java-app .docker run simple-java-appAfter running the container, the Java application executes successfully inside Docker, confirming that the containerization was done correctly.
Through this project, I learned:
- How to write a basic Dockerfile
- How Docker images and containers work
- How to containerize a Java application
- Docker commands like
build,run, andps - Practical hands-on experience with Docker
As a DevOps learner, this project helped me build strong fundamentals of Docker before moving to advanced topics like:
- Docker Compose
- Kubernetes
- CI/CD Pipelines
- Cloud Deployments (AWS / EKS)
Shipra DevOps & Cloud Enthusiast 🌱 Learning Docker | Kubernetes | AWS