This project demonstrates deploying a Dockerized Nginx web server on an Ubuntu EC2 instance hosted on AWS. The deployment was performed using PuTTY over SSH, with Docker used to build and run a custom image serving a static HTML website.
Laptop │ │ SSH (PuTTY) ▼ AWS EC2 (Ubuntu) │ │ Docker ▼ Nginx Container │ ▼ Static Website
- AWS EC2
- Ubuntu Linux
- Docker
- Nginx
- Git
- GitHub
- PuTTY
docker-deployment-project/ ├── Dockerfile ├── index.html ├── README.md ├── screenshots/ └── docs/
- AWS Account
- EC2 Ubuntu Instance
- Docker Installed
- SSH Access
bash docker build -t docker-demo .
bash docker run -d -p 80:80 --name web-container docker-demo
bash docker ps
Open your browser:
http://
Stop Container
bash docker stop web-container
Start Container
bash docker start web-container Restart Container
bash docker restart web-container Remove Container
bash docker rm web-containerRemove Image
bash docker rmi docker-demo
- EC2 Instance
- PuTTY Connection
- Running Container
- Browser Output
- Launching AWS EC2 Instances
- Connecting via SSH using PuTTY
- Installing Docker
- Building Docker Images
- Running Containers
- Managing Docker Containers
- Deploying Static Websites
- Using Git and GitHub
Snehal Awasare
GitHub: https://github.com/awasaresnehal
LinkedIn: https://linkedin.com/in/snehalawasare
Screenshoots