Glossary & Docker Commands¶
Glossary¶
- CNM (Container Networking Model) — Docker's pluggable networking model supporting multiple drivers.
 - Overlay Network — A network enabling communication between containers across different hosts.
 - Volume — Persistent storage mechanism for Docker containers.
 - Registry — A service to store and distribute Docker images (e.g., Docker Hub, GCR).
 - Tag — Label assigned to an image version, e.g., 
myapp:1.0.0. - Trivy — Open-source vulnerability scanner for container images.
 - Kaniko — Tool to build container images without requiring Docker daemon or root privileges.
 - Buildpacks — Frameworks for building container images directly from application source code.
 - Docker Compose — Tool for defining and running multi-container Docker applications.
 - CI/CD — Continuous Integration and Continuous Deployment for automated application delivery.
 
Common Docker Commands Cheat Sheet¶
| Command | Description | 
|---|---|
docker network ls | 
List all Docker networks | 
docker network create mynet | 
Create a custom network | 
docker volume create myvol | 
Create a named volume | 
docker run -v myvol:/data busybox | 
Mount volume inside a container | 
docker tag image user/image:1.0 | 
Add a tag to an image | 
docker push user/image:1.0 | 
Push image to Docker registry | 
docker-compose up | 
Start all services defined in docker-compose.yml | 
docker-compose down | 
Stop and remove containers, networks, volumes | 
docker build -t myimage:latest . | 
Build an image from Dockerfile | 
trivy image myimage:latest | 
Scan image for vulnerabilities (Trivy) |