An open API service indexing awesome lists of open source software.

https://github.com/leewr9/container-lab

Container tech practice and deployment with examples.
https://github.com/leewr9/container-lab

container docker docker-compose k8s kubernetes

Last synced: 2 months ago
JSON representation

Container tech practice and deployment with examples.

Awesome Lists containing this project

README

          

# Container Lab

This repository is dedicated to learning and practicing container technologies like Docker and Kubernetes. It includes Dockerfiles, Kubernetes manifests, and example configurations organized for easy experimentation and development.

## Feature

- Practice **Docker**, **Docker Compose**, and **Kubernetes (k8s)** setups
- Modular folders for isolated container and cluster environments
- Quick start with simple Docker Compose and kubectl commands
- Hands-on learning for building, deploying, and managing containers and clusters

## Installation

```bash
git clone https://github.com/leewr9/learning-docker.git
cd learning-docker
```

## Usage

Choose a service or environment you want to practice with:

```bash
cd
```

### Docker

```bash
# Build Docker image from Dockerfile in current folder
docker build -t .

# Run container in detached mode with a specific name
docker run -d --name

# Stop the running container
docker stop

# Remove the stopped container
docker rm
```

### Docker Compose

```bash
# Start services defined in docker-compose.yml in detached mode
docker-compose up -d

# Stop and remove containers, networks defined in docker-compose.yml
docker-compose down
```

### Kubernetes (k8s)

```bash
# Apply all Kubernetes manifests in current directory
kubectl apply -f .

# Delete all Kubernetes resources defined in current directory
kubectl delete -f .
```

## License

This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.