Skip to content

codeWithMarina/container-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Usage

Choose a service or environment you want to practice with:

cd <folder-name>

Docker

# Build Docker image from Dockerfile in current folder
docker build -t <image-name> .

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

# Stop the running container
docker stop <container-name>

# Remove the stopped container
docker rm <container-name>

Docker Compose

# 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)

# 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 file for details.

About

Container tech practice and deployment with examples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 79.8%
  • Dockerfile 20.2%