<< All versions
Skill v1.0.0
currentAutomated scan100/100aj-geddes/useful-ai-prompts/container-registry-management
──Details
PublishedOctober 20, 2026 at 08:03 AM
Content Hashsha256:69b2822d3c3e5855...
Git SHA3f5182cfd739
──Files
Files (1 file, 2.6 KB)
SKILL.md2.6 KBactive
SKILL.md · 101 lines · 2.6 KB
version: "1.0.0" name: container-registry-management description: > Manage container registries (Docker Hub, ECR, GCR) with image scanning, retention policies, and access control.
Container Registry Management
Table of Contents
Overview
Implement comprehensive container registry management including image scanning, vulnerability detection, retention policies, access control, and multi-region replication.
When to Use
- Container image storage and distribution
- Security scanning and compliance
- Image retention and cleanup
- Registry access control
- Multi-region deployments
- Image signing and verification
- Cost optimization
Quick Start
Minimal working example:
yaml
# ecr-setup.yamlapiVersion: v1kind: ConfigMapmetadata:name: ecr-managementnamespace: operationsdata:setup-ecr.sh: |#!/bin/bashset -euo pipefailREGISTRY_NAME="myapp"REGION="us-east-1"ACCOUNT_ID="123456789012"echo "Setting up ECR repository..."# Create ECR repositoryaws ecr create-repository \--repository-name "$REGISTRY_NAME" \--region "$REGION" \--encryption-configuration encryptionType=KMS,kmsKey=arn:aws:kms:$REGION:$ACCOUNT_ID:key/12345678-1234-1234-1234-123456789012 \--image-tag-mutability IMMUTABLE \--image-scanning-configuration scanOnPush=true || true// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents | |
|---|---|---|
| AWS ECR Setup and Management | AWS ECR Setup and Management | |
| Container Image Build and Push | Container Image Build and Push | |
| Image Signing with Notary | Image Signing with Notary | |
| Registry Access Control | Registry Access Control | |
| Registry Monitoring | Registry Monitoring |
Best Practices
✅ DO
- Scan images before deployment
- Use image tag immutability
- Implement retention policies
- Control registry access with IAM
- Sign images for verification
- Replicate across regions
- Monitor registry storage
- Use private registries
❌ DON'T
- Push to public registries
- Use
latesttag in production - Allow anonymous pulls
- Store secrets in images
- Keep old images indefinitely
- Push without scanning
- Use default credentials
- Share registry credentials