Soufiane Zaakour
Set up a Docker-based platform to deploy, manage, and orchestrate containers.
- Task 1: Docker Installation
- Task 2: Nginx Deployment
- Task 3: Custom Image, Volume, Network
- Task 4: Docker Compose
Docker was installed on Ubuntu and configured correctly.
sudo apt update
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
docker run hello-world
---
---
# β
πΉ Add this for TASK 2
```markdown
## π Task 2: Nginx Deployment
### βοΈ Description
A web server was deployed using an Nginx container.
### π οΈ Commands Used
```bash
docker pull nginx
docker run -d -p 8080:80 nginx
docker ps
# π§© Task 3 β Docker Advanced Concepts
## π― Objective
Master Docker image creation, volumes, and networking.
---
## π¦ Part A β Custom Image
- Created Dockerfile
- Built custom Nginx image
- Ran container with custom HTML page
---
## π© Part B β Volumes (Persistence)
### Verification
- Docker volume created: task3-volume
- Mounted inside container at /data
- Data stored inside container
- Data persisted after container restart
### Internal storage location
/var/lib/docker/volumes/task3-volume/_data
### Result
Persistence successfully verified β
---
## π¨ Part C β Networking
### Steps
- Created Docker network: task3-network
- Ran MySQL container in network
- Ran Nginx container in same network
- Verified communication using ping
### Result
Containers successfully communicated inside Docker network β
---
## π§ Key Concepts Learned
- Docker images
- Docker volumes (data persistence)
- Docker networking (container communication)
- DNS inside Docker
## π§© Task 4 β Docker Compose
### Objective
Deploy multi-container application using Docker Compose.
### Services
- Nginx (web server)
- MySQL (database)
### Features
- Automatic container creation
- Shared network
- Persistent storage using volumes
### Commands used
- docker compose up -d
- docker compose down
- docker ps
### Result
Application successfully deployed with multiple containers β
## π Final Conclusion
This project demonstrates full Docker fundamentals:
β Container creation and management
β Custom Docker images
β Data persistence using volumes
β Container networking
β Multi-container orchestration using Docker Compose
## π Result
A complete Docker-based environment was successfully built and tested.