Manage container registries (Docker Hub, ECR, GCR) with image scanning, retention policies, and access control.
Implement comprehensive container registry management including image scanning, vulnerability detection, retention policies, access control, and multi-region replication.
Minimal working example:
# ecr-setup.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: ecr-management
namespace: operations
data:
setup-ecr.sh: |
#!/bin/bash
set -euo pipefail
REGISTRY_NAME="myapp"
REGION="us-east-1"
ACCOUNT_ID="123456789012"
echo "Setting up ECR repository..."
# Create ECR repository
aws 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)
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 |
latest tag in productionCopy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/container-registry-management · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/container-registry-management"
cp -r "skills/container-registry-management" ".claude/skills/container-registry-management"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.