Welcome to the Containers Demos repository! This project showcases various containerization techniques and examples using Docker and Kubernetes. Whether you're a beginner or an experienced developer, you'll find useful demos that illustrate how to effectively use containers in your projects.
Containers are a powerful tool for developers. They allow you to package applications with all their dependencies into a single unit. This makes it easy to deploy and run applications consistently across different environments. In this repository, you'll find demos that illustrate various aspects of containerization.
To get started with the demos in this repository, you can download the latest release from our Releases section. After downloading, follow the instructions provided in each demo to execute the examples.
Before you begin, ensure you have the following installed:
- Docker: This is the core technology we will use for containerization. You can download it from Docker's official website.
- Kubernetes: For orchestration, you'll need Kubernetes. You can set it up using Minikube or any cloud provider.
- Git: To clone the repository, make sure you have Git installed.
-
Clone the repository:
git clone https://github.com/GilHaxz/containers-demos.git
-
Navigate to the directory:
cd containers-demos
-
Download the latest release from our Releases section. Make sure to execute the downloaded files as per the instructions.
In this section, we outline the various demos available in the repository. Each demo has its own directory and contains a README file with detailed instructions.
This demo shows how to create a simple Docker container that runs a web server.
- Directory:
basic-docker-demo
- Instructions:
- Navigate to the demo directory.
- Build the Docker image:
docker build -t my-web-server .
- Run the container:
docker run -p 80:80 my-web-server
Learn how to use Docker Compose to manage multi-container applications.
- Directory:
docker-compose-demo
- Instructions:
- Navigate to the demo directory.
- Start the application:
docker-compose up
This demo illustrates how to deploy a simple application on Kubernetes.
- Directory:
kubernetes-deployment-demo
- Instructions:
- Ensure your Kubernetes cluster is running.
- Apply the deployment configuration:
kubectl apply -f deployment.yaml
Explore how to set up a CI/CD pipeline using containers.
- Directory:
cicd-demo
- Instructions:
- Follow the README to set up the pipeline with GitHub Actions or Jenkins.
Once you have the demos running, you can explore various functionalities. Each demo has its own set of features and configurations. Feel free to modify the code to suit your needs.
Here are some common Docker commands you might find useful:
-
List Running Containers:
docker ps
-
Stop a Container:
docker stop <container_id>
-
Remove a Container:
docker rm <container_id>
For Kubernetes, some useful commands include:
-
Get Pods:
kubectl get pods
-
Delete a Pod:
kubectl delete pod <pod_name>
We welcome contributions to this repository. If you have ideas for new demos or improvements, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/my-feature
- Make your changes and commit them:
git commit -m "Add new demo"
- Push to your branch:
git push origin feature/my-feature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or suggestions, feel free to reach out:
- Email: your-email@example.com
- GitHub: GilHaxz
Thank you for visiting the Containers Demos repository! We hope you find these demos helpful in your containerization journey. Don't forget to check the Releases section for the latest updates and downloads.