LinuxCommandLibrary

crane-manifest

View content manifest for container images

TLDR

Get the manifest

$ crane manifest [image_name]
copy

Display help
$ crane manifest [[-h|--help]]
copy

SYNOPSIS

crane manifest [flags]

PARAMETERS

--digest
    Only print the manifest's digest.

--platform
    Target platform for manifest retrieval (e.g., linux/amd64). If not specified, the default platform will be used.

--username
    Registry username.

--password
    Registry password.

--insecure
    Allow insecure connections (TLS verification disabled).

--config
    Return the config digest


    The container image name (e.g., docker.io/library/alpine:latest).

DESCRIPTION

The `crane manifest` command allows users to interact with container image manifests without pulling the entire image. It provides functionalities to inspect the manifest's content, digest, and configuration, as well as push, pull, and delete manifests from registries.

This is particularly useful when dealing with multi-architecture or multi-platform images, where inspecting the manifest can reveal the supported platforms without the overhead of downloading potentially large image layers. It's also helpful for registry administration, allowing direct manipulation of manifest data. The command supports OCI (Open Container Initiative) and Docker image formats, making it a versatile tool for container image management.

EXAMPLES


To display the manifest of an image: crane manifest ubuntu:latest
To get the digest of the manifest: crane manifest --digest ubuntu:latest
To pull a manifest and save it to file: crane manifest ubuntu:latest > manifest.json

SEE ALSO

crane copy(1), crane push(1), skopeo inspect(1)

Copied to clipboard