Docker
knowledge skill
Builds a Docker image from a Dockerfile and pushes it to a registry. Produces an image manifest with digest and tag for deployment verification.
Worked examples
- {"input": {"dockerfile_path": "/app/Dockerfile", "context_dir": "/app", "image_name": "myapp", "registry_url": "ghcr.io", "tag": "v1.2.3"}, "output": {"image_id": "sha256:abc123...", "image_tag": "ghcr.io/myapp:v1.2.3", "push_success": true}}
- {"input": {"dockerfile_path": "/service/Dockerfile.prod", "context_dir": "/service", "image_name": "backend", "registry_url": "docker.io/myorg", "tag": "latest"}, "output": {"image_id": "sha256:def456...", "image_tag": "docker.io/myorg/backend:latest", "push_success": false}}
Input
- dockerfile_path: string / Path to Dockerfile
- context_dir: string / Build context directory
- image_name: string / Target image name
- registry_url: string / Destination registry URL
- tag: string / Image tag (default: 'latest')
Output
- image_id: string / Unique image ID (digest)
- image_tag: string / Full image tag with registry
- push_success: boolean / True if push to registry succeeded
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0