Skip to content

Container Images & Multi-Registry Operations (Skopeo)

Skopeo is a command-line utility that performs operations on container images and image repositories directly across registries without requiring Docker daemon installation or local disk pulls.


Copying Images Between ECR Registries

# 1. Obtain ECR authorization tokens for source and destination accounts
SRC_PASSWORD=$(aws ecr get-login-password --profile source-profile --region us-east-1)
DEST_PASSWORD=$(aws ecr get-login-password --profile dest-profile --region eu-west-1)

# 2. Copy image directly across registries
skopeo copy \
  --src-creds AWS:$SRC_PASSWORD \
  --dest-creds AWS:$DEST_PASSWORD \
  docker://111122223333.dkr.ecr.us-east-1.amazonaws.com/my-app:v1.0.0 \
  docker://444455556666.dkr.ecr.eu-west-1.amazonaws.com/my-app:v1.0.0

Inspecting Remote Images without Pulling

# Inspect image metadata, layers, and labels directly from a remote registry
skopeo inspect docker://docker.io/library/nginx:latest