Docker Operations
БесплатноЗапускает вложенные скриптыНе проверенUse this skill when performing any Docker-related tasks including building images, running containers, managing containers, viewing logs, and working with…
Об этом скилле
Docker Operations Skill
This skill provides comprehensive guidance for all Docker operations in this project.
When to Use This Skill
Use this skill when the user requests any Docker-related operation:
- Building Docker images
- Running containers
- Managing container lifecycle (start, stop, restart, remove)
- Viewing container logs
- Working with Docker Compose
- Inspecting containers and images
- Docker cleanup operations
Core Operations
Building Images
# Build from Dockerfile in current directory
docker build -t <image-name>:<tag> .
# Build with specific Dockerfile
docker build -f Dockerfile.prod -t <image-name>:<tag> .
# Build with build arguments
docker build --build-arg NODE_ENV=production -t <image-name>:<tag> .
Running Containers
# Run in detached mode
docker run -d --name <container-name> <image-name>
# Run with port mapping
docker run -d -p <host-port>:<container-port> <image-name>
# Run with volume mount
docker run -d -v <host-path>:<container-path> <image-name>
# Run with environment variables
docker run -d -e VAR_NAME=value <image-name>
# Run interactively
docker run -it --rm <image-name> /bin/sh
Container Management
docker ps # List running containers
docker ps -a # List all containers
docker stop <container> # Stop a container
docker start <container> # Start a stopped container
docker restart <container> # Restart a container
docker rm <container> # Remove a container
docker rm -f <container> # Force remove running container
Logs and Inspection
docker logs <container> # View logs
docker logs -f <container> # Follow logs
docker logs --tail 100 <container> # Last 100 lines
docker inspect <container> # Full container details
docker stats # Resource usage
Image Management
docker images # List images
docker pull <image> # Pull from registry
docker push <image> # Push to registry
docker rmi <image> # Remove image
docker tag <src> <dest> # Tag an image
Docker Compose Operations
docker-compose up # Start services
docker-compose up -d # Start in detached mode
docker-compose up --build # Rebuild and start
docker-compose down # Stop and remove
docker-compose down -v # Also remove volumes
docker-compose logs # View all logs
docker-compose logs <service> # View service logs
docker-compose ps # List services
docker-compose exec <svc> sh # Execute in service
Cleanup Operations
docker system prune # Remove unused data
docker system prune -a # Remove all unused images
docker volume prune # Remove unused volumes
docker network prune # Remove unused networks
docker container prune # Remove stopped containers
Additional Resources
Reference Files
references/docker-commands.md- Complete Docker CLI referencereferences/docker-compose.md- Docker Compose configuration guide
Examples
examples/Dockerfile.example- Sample Dockerfile for Node.js appsexamples/docker-compose.example.yml- Sample Docker Compose file
Scripts
scripts/docker-check.sh- Verify Docker installation and status
Best Practices
- Always use specific tags - Avoid using
latestin production - Use multi-stage builds - Reduce image size
- Don't run as root - Use USER directive in Dockerfile
- Use .dockerignore - Exclude unnecessary files
- Health checks - Add HEALTHCHECK to Dockerfiles
- Resource limits - Set memory and CPU limits in production
Установить Docker Operations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Docker Operations?
Use this skill when performing any Docker-related tasks including building images, running containers, managing containers, viewing logs, and working with Docker Compose
Как установить скилл Docker Operations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Docker Operations запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub