This project documents the complete setup process for:
It serves as a beginner-friendly guide to containerization and basic web deployment.
Docker allows applications to run inside lightweight, portable containers.
Visit the official Docker website:
https://www.docker.com/products/docker-desktop
Download Docker Desktop for Windows
Run the installer (Docker Desktop Installer.exe)
During installation:
Restart your system if required
Open Docker Desktop from the Start Menu
Wait until it shows Docker is running
Open Command Prompt or PowerShell and run:
docker --version
Then run a test container:
docker run hello-world
If Docker is installed correctly, a confirmation message will be displayed.
docker run -it ubuntu:22.04 bash
This starts an interactive Ubuntu terminal inside a Docker container where you can execute Linux commands.
Inside the Ubuntu container:
apt update
apt install default-jdk -y
java -version
Create a Java file:
nano Hello.java
Add the following code:
class Hello {
public static void main(String[] args) {
System.out.println("Hello from Docker on Windows!");
}
}
Compile and run:
javac Hello.java
java Hello
Expected output:
Hello from Docker on Windows!
GitHub Pages allows you to host static websites directly from a GitHub repository.
<!-- -->
yourusername.github.io
Replace yourusername with your actual GitHub username.
The repository name must match your GitHub username exactly for the site to work.
Upload your website files such as:
index.htmlstyle.cssscript.jsOr push your project using Git from your local machine:
git init
git add .
git commit -m "Initial website"
git branch -M main
git remote add origin https://github.com/yourusername/yourusername.github.io.git
git push -u origin main
<!-- -->
Branch: main
Folder: /root
After a few minutes, your website will be live at:
https://yourusername.github.io
If the site does not appear immediately, wait a few minutes and refresh the page.

| Previous | Home | Next |
|---|---|---|
| ← Lab 1 | Main README | Lab 3 → |