Docker CLI expert for containerization. Use when users need to build, run, manage containers, images, networks, volumes, or compose applications.
View on GitHubleobrival/topographic-plugins-official
dev
plugins/dev/skills/docker-cli/SKILL.md
January 20, 2026
Select agents to install to:
npx add-skill https://github.com/leobrival/topographic-plugins-official/blob/main/plugins/dev/skills/docker-cli/SKILL.md -a claude-code --skill docker-cliInstallation paths:
.claude/skills/docker-cli/# Docker CLI Guide Docker is a containerization platform that packages applications and dependencies into isolated containers. This guide provides essential workflows and quick references for common Docker operations. ## Quick Start ```bash # Check Docker installation docker --version # Run your first container docker run hello-world # Run interactive container docker run -it ubuntu bash # Run container in background docker run -d nginx # List running containers docker ps # Stop a container docker stop container_name ``` ## Common Workflows ### Workflow 1: Build and Run an Application ```bash # Create Dockerfile in your project directory # Build image docker build -t myapp:latest . # Run container with port mapping docker run -d -p 8080:80 --name myapp myapp:latest # View logs docker logs -f myapp # Access container shell docker exec -it myapp bash ``` ### Workflow 2: Development with Hot Reload ```bash # Run with volume mount for live code updates docker run -d \ -p 8080:80 \ -v $(pwd)/src:/app/src \ --name myapp-dev \ myapp:dev # Watch logs in real-time docker logs -f myapp-dev # Restart after configuration changes docker restart myapp-dev ``` ### Workflow 3: Multi-Container Application with Docker Compose ```bash # Create docker-compose.yml with services # Start all services docker compose up -d # View service logs docker compose logs -f # Scale a service docker compose up -d --scale api=3 # Stop all services docker compose down # Stop and remove volumes docker compose down -v ``` ### Workflow 4: Push Image to Registry ```bash # Login to registry docker login # Build and tag image docker build -t myapp:latest . docker tag myapp:latest username/myapp:v1.0.0 docker tag myapp:latest username/myapp:latest # Push to registry docker push username/myapp:v1.0.0 docker push username/myapp:latest ``` ### Workflow 5: Debug Container Issues ```bash # Check container status docker ps -a # View container logs docker logs container_name #