Containers
Skopeo CLI
Skopeo commands for container image management.
25 commands
Windows
MacOS
Linux
#image-management
#registry
Inspect
Inspect an image on a remote registry
skopeo inspect docker://nginx:latest
Show raw manifest of a remote image
skopeo inspect --raw docker://nginx:latest
Get image digest
skopeo inspect docker://nginx:latest --format '{{.Digest}}'
Show the image configuration
skopeo inspect --config docker://nginx:latest
Inspect a local OCI archive
skopeo inspect oci-archive:myimage.tar
Copy
Copy image between registries
skopeo copy docker://nginx:latest docker://myregistry.io/nginx:latest
Copy image to OCI archive file
skopeo copy docker://nginx:latest oci-archive:nginx.tar
skopeo copy docker://nginx:latest docker-archive:nginx.tar # Copy image to Docker archive file
Copy image to a local directory
skopeo copy docker://nginx:latest dir:/tmp/nginx
Copy all architectures
skopeo copy --multi-arch all docker://nginx:latest docker://myregistry.io/nginx:latest
Copy with destination credentials
skopeo copy --dest-creds user:pass docker://nginx:latest docker://private.io/nginx:latest
Delete
Delete an image from a registry
skopeo delete docker://myregistry.io/myimage:v1
Delete with credentials
skopeo delete docker://myregistry.io/myimage:old --creds user:pass
Delete by digest
skopeo delete docker://myregistry.io/myimage@sha256:abc123
List Tags
List all tags for an image
skopeo list-tags docker://nginx
List tags on a private registry
skopeo list-tags docker://myregistry.io/myapp
List tags with authentication
skopeo list-tags docker://nginx --creds user:pass
Authentication
Log in to a container registry
skopeo login myregistry.io
skopeo login myregistry.io -u user -p pass # Log in with username and password
Log out from a container registry
skopeo logout myregistry.io
Log in using a custom auth file
skopeo login --authfile auth.json myregistry.io
Copy from authenticated registry
skopeo copy --src-creds user:pass docker://private.io/img:v1 dir:/tmp/img
Quick Commands
Inspect image metadata on a remote container registry
skopeo inspect docker://nginx:latest
Copy an image directly between two container registries
skopeo copy docker://nginx:latest docker://myregistry.io/nginx:latest
List all available tags for an image on a registry
skopeo list-tags docker://nginx