docker-helper
Generar y optimizar contenedores Docker
Crear configuraciones Docker requiere tiempo y experiencia. Esta habilidad proporciona plantillas listas para usar, técnicas de optimización y guía de resolución de problemas para aplicaciones en contenedores.
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“docker-helper”。 @docker-helper Generate a secure Dockerfile for a Python Flask API
预期结果:
- Multi-stage build for minimal image size (~150MB)
- Non-root user running as 'appuser' (UID 1001)
- Python 3.11-slim base with latest security patches
- Health check configured at /health endpoint
- No secrets stored in image layers
- Requirements installed in separate layer for caching
正在使用“docker-helper”。 @docker-helper Create a docker-compose file for a web app with database
预期结果:
- Frontend service with port mapping and environment variables
- Backend API service connected to frontend network
- PostgreSQL database with health check and persistent volume
- Redis cache for session storage
- Nginx reverse proxy configuration
安全审计
安全This is a pure documentation skill containing only SKILL.md with Docker best practices and examples. All 57 static findings are FALSE POSITIVES: the reported 'shell commands' are Docker examples in code blocks, 'weak crypto' is misinterpreted build flags, and 'credential access' are example connection strings in documentation. No executable code, network calls, or system access exists.
风险因素
⚙️ 外部命令 (35)
🔑 环境变量 (3)
质量评分
你能构建什么
Contenerizar aplicaciones
Generar Dockerfiles listos para producción para tus aplicaciones con mejores prácticas de seguridad y rendimiento.
Optimizar pipelines de compilación
Reducir tiempos de compilación y tamaños de imagen usando compilaciones multi-etapa, estrategias de caché y optimizaciones de BuildKit.
Estandarizar configuraciones
Crear estándares Docker consistentes en tu equipo con mejores prácticas documentadas y plantillas.
试试这些提示
@docker-helper Generate a multi-stage Dockerfile for a Node.js 18 application with TypeScript. Include production optimizations and security best practices.
@docker-helper Create a docker-compose.yml for a development environment with a React frontend, Node.js backend, and PostgreSQL database.
@docker-helper Optimize this Docker setup for faster builds and smaller image size. Current base image is node:18, and build takes 5 minutes.
@docker-helper My container exits immediately after starting with no error output. How do I troubleshoot this container startup issue?
最佳实践
- Usa compilaciones multi-etapa para separar dependencias de compilación del entorno de ejecución
- Siempre ejecuta contenedores como usuarios no-root para limitar riesgos de seguridad
- Implementa health checks para servicios críticos para permitir una orquestación adecuada
避免
- No uses la etiqueta 'latest' para imágenes base en producción
- No almacenes secretos o credenciales en Dockerfiles o capas de imagen
- No ejecutes COPY . . temprano en el Dockerfile ya que invalida el caché en cada cambio